Skip to content

Commit

Permalink
Fix RootBuilder settings set for other game instances
Browse files Browse the repository at this point in the history
  • Loading branch information
ZashIn committed Sep 28, 2023
1 parent d72bdc7 commit dbf2587
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions games/game_cyberpunk2077.py
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,8 @@ def ui_init(window):

def _pre_run_callback(self, path: str) -> bool:
"""Deploy redmod before gamelaunch if necessary."""
if not self.isActive():
return True
# TODO: run redmod only if started via "-modded"
if not self._is_redmod_installed() or not self._organizer.pluginSetting(
self.name(), "predeploy_redmod"
Expand Down Expand Up @@ -205,6 +207,8 @@ def _redmod_load_order(self) -> Iterable[str]:
yield from (p.name for p in mod_path.glob("mods/*") if p.is_dir())

def _set_root_builder_settings(self) -> None:
if not self.isActive():
return
if not self._organizer.isPluginEnabled("RootBuilder"):
qWarning("RootBuilder not enabled, but required for most mods!")
# TODO: warning about RootBuilder
Expand Down

0 comments on commit dbf2587

Please sign in to comment.