Skip to content

Commit d8d8335

Browse files
RareLauncher: fix launching third party launchers with compatibility tools
1 parent 3cac3e0 commit d8d8335

1 file changed

Lines changed: 9 additions & 5 deletions

File tree

rare/commands/launcher/lgd_helper.py

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -70,17 +70,21 @@ def get_third_party_params(rgame: RareGameSlim, init: InitParams, launch: Launch
7070
if platform.system() == 'Windows':
7171
command = [uri]
7272
else:
73-
command = core.get_app_launch_command(app_name)
73+
disable_wine = rgame.core.lgd.config.getboolean(
74+
app_name, 'no_wine', fallback=rgame.core.lgd.config.get('default', 'no_wine', fallback=False)
75+
)
76+
command = core.get_app_launch_command(app_name, disable_wine=disable_wine)
7477
if not os.path.exists(command[0]) and shutil.which(command[0]) is None:
7578
return launch
79+
command.append('start.exe')
7680
command.append(uri)
7781

78-
exe, args, env = prepare_process(command, core.get_app_environment(app_name))
82+
_exe, _args, _env = prepare_process(command, core.get_app_environment(app_name))
7983

8084
launch.is_third_party_game = True
81-
launch.executable = exe
82-
launch.arguments = args
83-
launch.environment = env
85+
launch.executable = _exe
86+
launch.arguments = _args
87+
launch.environment = _env
8488

8589
return launch
8690

0 commit comments

Comments
 (0)