From 319d8461a5d0727821cad74714b363786ec8191d Mon Sep 17 00:00:00 2001 From: Zash Date: Mon, 24 Apr 2023 22:07:55 +0200 Subject: [PATCH] Fix redmod load order cmd arg --- games/game_cyberpunk2077.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/games/game_cyberpunk2077.py b/games/game_cyberpunk2077.py index d2b4118..a083d4c 100644 --- a/games/game_cyberpunk2077.py +++ b/games/game_cyberpunk2077.py @@ -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: