Skip to content

Commit

Permalink
Correctly allow setting gamedrive after session started.
Browse files Browse the repository at this point in the history
  • Loading branch information
GloriousEggroll committed Oct 12, 2024
1 parent d94056a commit 57e0fc2
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion gamefixes-umu/umu-zenlesszonezero.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,5 @@

def main() -> None:
"""Needs gamedrive fix to detect proper install space"""
util.set_environment('PROTON_SET_GAME_DRIVE', 'gamedrive')
util.set_game_drive(True)

5 changes: 5 additions & 0 deletions util.py
Original file line number Diff line number Diff line change
Expand Up @@ -947,3 +947,8 @@ def set_cpu_topology_limit(core_limit: int, ignore_user_setting: bool = False) -

# Apply the limit
return set_cpu_topology(core_limit, ignore_user_setting)

def set_game_drive(enabled: bool):
if enabled:
protonmain.g_session.compat_config.add("gamedrive")
protonmain.setup_game_dir_drive()

0 comments on commit 57e0fc2

Please sign in to comment.