From 2bc8379b513a9843b782072db1e6218faa2e7072 Mon Sep 17 00:00:00 2001 From: Arthur Carvalho Date: Sat, 27 Jul 2024 04:10:31 -0300 Subject: [PATCH] fix: split character image names with underline This is a minor change that I forgot to add on the latest release, and it was breaking how the images show up on the Rich Presence --- src/game_monitor.py | 2 +- src/rich_presence.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/game_monitor.py b/src/game_monitor.py index 09a97e9..9ae488a 100644 --- a/src/game_monitor.py +++ b/src/game_monitor.py @@ -95,7 +95,7 @@ def run_game_and_gimi(self) -> None: self._logger.info("Starting GIMI") subprocess.Popen( - f'{os.path.join(config.GIMI_DIRECTORY, "3DMigoto Loader.exe")}', + os.path.join(config.GIMI_DIRECTORY, "3DMigoto Loader.exe"), start_new_session=True, shell=True, cwd=config.GIMI_DIRECTORY, diff --git a/src/rich_presence.py b/src/rich_presence.py index 06bd1d1..1a5fb85 100644 --- a/src/rich_presence.py +++ b/src/rich_presence.py @@ -111,7 +111,7 @@ def get_parsed_configs(self, name: str) -> Union[str, Any]: if self.current_character in configRPC_characters: all_attrib.append(configRPC_characters[self.current_character]) else: - all_attrib.append("".join(self.current_character.split()).lower()) + all_attrib.append("_".join(self.current_character.split()).lower()) elif attribute == "region_image": if self.current_region in configRPC_regions: all_attrib.append(configRPC_regions[self.current_region])