mirror of
https://github.com/lutris/lutris
synced 2024-09-04 23:13:35 +00:00
Add basic LSI support
This commit is contained in:
parent
d2d75ab940
commit
d5d0f964da
|
@ -92,6 +92,16 @@ class steam(Runner):
|
||||||
"Make sure you disabled Lutris Runtime and "
|
"Make sure you disabled Lutris Runtime and "
|
||||||
"have the required libraries installed.")
|
"have the required libraries installed.")
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
'option': 'lsi_steam',
|
||||||
|
'label': "Start Steam with LSI",
|
||||||
|
'type': 'bool',
|
||||||
|
'default': False,
|
||||||
|
'help': ("Launches steam with LSI patches enabled. "
|
||||||
|
"Make sure Lutris Runtime is disabled and "
|
||||||
|
"you have LSI installed. "
|
||||||
|
"https://github.com/solus-project/linux-steam-integration")
|
||||||
|
},
|
||||||
{
|
{
|
||||||
'option': 'run_without_steam',
|
'option': 'run_without_steam',
|
||||||
'type': 'string',
|
'type': 'string',
|
||||||
|
@ -166,7 +176,10 @@ class steam(Runner):
|
||||||
return path.rstrip('sSteamAp')
|
return path.rstrip('sSteamAp')
|
||||||
|
|
||||||
def get_executable(self):
|
def get_executable(self):
|
||||||
return system.find_executable('steam')
|
if self.runner_config.get('lsi_steam') and system.find_executable('lsi-steam'):
|
||||||
|
return system.find_executable('lsi-steam')
|
||||||
|
else:
|
||||||
|
return system.find_executable('steam')
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def working_dir(self):
|
def working_dir(self):
|
||||||
|
@ -194,7 +207,7 @@ class steam(Runner):
|
||||||
def get_env(self):
|
def get_env(self):
|
||||||
env = {}
|
env = {}
|
||||||
|
|
||||||
if self.runner_config.get('steam_native_runtime'):
|
if not self.runner_config.get('lsi_steam') and self.runner_config.get('steam_native_runtime'):
|
||||||
env['STEAM_RUNTIME'] = '0'
|
env['STEAM_RUNTIME'] = '0'
|
||||||
|
|
||||||
return env
|
return env
|
||||||
|
|
Loading…
Reference in a new issue