Skip to content

Commit

Permalink
Add executables with default arguments
Browse files Browse the repository at this point in the history
  • Loading branch information
ZashIn committed Oct 7, 2023
1 parent af7194a commit 1d8dba0
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions games/game_cyberpunk2077.py
Original file line number Diff line number Diff line change
Expand Up @@ -241,6 +241,15 @@ def listSaves(self, folder: QDir) -> list[mobase.ISaveGame]:
def iniFiles(self):
return ["UserSettings.json"]

def executables(self) -> list[mobase.ExecutableInfo]:
return [
# Start without REDmod launcher
mobase.ExecutableInfo(
title=self.gameName(),
binary=self.gameDirectory().absoluteFilePath(self.binaryName()),
).withArgument("--launcher-skip -skipStartScreen")
]

def _onAboutToRun(self, app_path: str, wd: QDir, args: str) -> bool:
"""
Copy cache files (`final.redscript` etc.) to overwrite to catch
Expand Down

0 comments on commit 1d8dba0

Please sign in to comment.