Skip to content

Commit

Permalink
Fix redmod load order cmd arg
Browse files Browse the repository at this point in the history
  • Loading branch information
ZashIn committed Apr 24, 2023
1 parent 2101b5c commit 319d846
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions games/game_cyberpunk2077.py
Original file line number Diff line number Diff line change
Expand Up @@ -172,15 +172,15 @@ def _redmod_deploy(self) -> tuple[bool, int] | None:
return None
# TODO: check if `-force` is required (see https://github.com/E1337Kat/cyberpunk2077_ext_redux/issues/297) # noqa: E501
load_order = '" "'.join(self._redmod_load_order())
redmod_exec = self._redmod_deploy_executable().withArgument(
f'-mod= "{load_order}"'
)
redmod_exec = self._redmod_deploy_executable()
if load_order:
redmod_exec = redmod_exec.withArgument(f'-mod= "{load_order}"')
return self._organizer.waitForApplication(
# self._organizer.startApplication("REDmod deploy only")
# self._organizer.startApplication("REDmod deploy only") # Cannot add args
self._organizer.startApplication(
executable=redmod_exec.binary().absoluteFilePath(),
args=redmod_exec.arguments(),
)
),
)

def _redmod_deploy_executable(self) -> mobase.ExecutableInfo:
Expand Down

0 comments on commit 319d846

Please sign in to comment.