Skip to content

Commit

Permalink
Fix subnautica starting in VR mode by default (adding seperate exe)
Browse files Browse the repository at this point in the history
  • Loading branch information
ZashIn committed Feb 19, 2024
1 parent 5e8a21b commit a073910
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions games/game_subnautica.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,19 @@ def listSaves(self, folder: QDir) -> list[mobase.ISaveGame]:
for folder in Path(save_path).glob("slot*")
]

def executables(self) -> list[mobase.ExecutableInfo]:
binary = self.gameDirectory().absoluteFilePath(self.binaryName())
return [
mobase.ExecutableInfo(
self.gameName(),
binary,
).withArgument("-vrmode none"),
mobase.ExecutableInfo(
f"{self.gameName()} VR",
self.gameDirectory().absoluteFilePath(self.binaryName()),
),
]

def executableForcedLoads(self) -> list[mobase.ExecutableForcedLoadSetting]:
return [
mobase.ExecutableForcedLoadSetting(self.binaryName(), lib).withEnabled(True)
Expand Down

0 comments on commit a073910

Please sign in to comment.