From 3cd7da09b62a80034a3f569fcef9c63ebc3f711a Mon Sep 17 00:00:00 2001 From: Lucas Menten Date: Thu, 30 Jan 2025 22:28:51 +0100 Subject: [PATCH] Fix game settings not saving issue Fixes #270 Update the `config_dir` path in `set_game_config` method in `lolbot/bot/bot.py` to 'Contents/LoL/Config' for macOS. --- lolbot/bot/bot.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lolbot/bot/bot.py b/lolbot/bot/bot.py index f471431..a690c8f 100644 --- a/lolbot/bot/bot.py +++ b/lolbot/bot/bot.py @@ -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":