Skip to content

Commit

Permalink
Fix game settings not saving issue
Browse files Browse the repository at this point in the history
Fixes iholston#270

Update the `config_dir` path in `set_game_config` method in `lolbot/bot/bot.py` to 'Contents/LoL/Config' for macOS.
  • Loading branch information
Leadernelson committed Jan 30, 2025
1 parent f7f80f1 commit 3cd7da0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lolbot/bot/bot.py
Original file line number Diff line number Diff line change
Expand Up @@ -323,7 +323,7 @@ def set_game_config(self) -> None:
if OS == 'Windows':
config_dir = os.path.join(self.config.windows_install_dir, 'Config')
else:
config_dir = os.path.join(self.config.macos_install_dir, 'contents/lol/config')
config_dir = os.path.join(self.config.macos_install_dir, 'Contents/LoL/Config')
game_config = os.path.join(config_dir, 'game.cfg')
persisted_settings = os.path.join(config_dir, 'PersistedSettings.json')
if OS != "Windows":
Expand Down

0 comments on commit 3cd7da0

Please sign in to comment.