Skip to content

Commit

Permalink
fix: split character image names with underline
Browse files Browse the repository at this point in the history
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
  • Loading branch information
Artprozew committed Jul 27, 2024
1 parent 5822b05 commit 2bc8379
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/game_monitor.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
2 changes: 1 addition & 1 deletion src/rich_presence.py
Original file line number Diff line number Diff line change
Expand Up @@ -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])
Expand Down

0 comments on commit 2bc8379

Please sign in to comment.