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 "
|
||||
"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',
|
||||
'type': 'string',
|
||||
|
@ -166,7 +176,10 @@ class steam(Runner):
|
|||
return path.rstrip('sSteamAp')
|
||||
|
||||
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
|
||||
def working_dir(self):
|
||||
|
@ -194,7 +207,7 @@ class steam(Runner):
|
|||
def get_env(self):
|
||||
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'
|
||||
|
||||
return env
|
||||
|
|
Loading…
Reference in a new issue