Skip to content

Commit 1d8dba0

Browse files
committed
Add executables with default arguments
1 parent af7194a commit 1d8dba0

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

games/game_cyberpunk2077.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -241,6 +241,15 @@ def listSaves(self, folder: QDir) -> list[mobase.ISaveGame]:
241241
def iniFiles(self):
242242
return ["UserSettings.json"]
243243

244+
def executables(self) -> list[mobase.ExecutableInfo]:
245+
return [
246+
# Start without REDmod launcher
247+
mobase.ExecutableInfo(
248+
title=self.gameName(),
249+
binary=self.gameDirectory().absoluteFilePath(self.binaryName()),
250+
).withArgument("--launcher-skip -skipStartScreen")
251+
]
252+
244253
def _onAboutToRun(self, app_path: str, wd: QDir, args: str) -> bool:
245254
"""
246255
Copy cache files (`final.redscript` etc.) to overwrite to catch

0 commit comments

Comments
 (0)