Skip to content

Commit d600c50

Browse files
committed
add missing args that might be game specific
1 parent cf15ceb commit d600c50

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

defaults/scripts/epic.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,13 @@ def get_parameters(self, game_id, offline):
198198
try:
199199
result = self.execute_shell(
200200
f"{self.legendary_cmd} launch {game_id} --json --skip-version-check {offline_switch} ")
201-
return " ".join(result['egl_parameters'])
201+
game_args = ""
202+
for arg in result['game_parameters']:
203+
parts = arg.split("=")
204+
game_args += f"{parts[0]}=\"{parts[1]}\" "
205+
#game_args = " ".join([f'{param.replace(' ', '\\ ')}' for param in result['game_parameters']])
206+
egl_args = " ".join(result['egl_parameters'])
207+
return egl_args + " " + game_args
202208
except CmdException as e:
203209
raise e
204210

0 commit comments

Comments
 (0)