From e1487dec7fc2f03313764571a09ead148a197a5b Mon Sep 17 00:00:00 2001 From: Mauro Junior <45118493+jetrotal@users.noreply.github.com> Date: Wed, 24 Jul 2024 05:54:56 -0300 Subject: [PATCH] Local Settings - First Commit If you have a copy of config.ini saved at the same folder as the player app, it will load the game settings from it, instead of the global folder. ------------------------------------- Update game_config.cpp --- src/game_config.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/game_config.cpp b/src/game_config.cpp index 5e502ec38a..b74e1a0c2b 100644 --- a/src/game_config.cpp +++ b/src/game_config.cpp @@ -94,6 +94,9 @@ Game_Config Game_Config::Create(CmdlineParser& cp) { if (!config_path.empty()) { config_file = FileFinder::MakePath(config_path, config_name); } + else if (FileFinder::Root().Exists(config_name)) { + config_file = ToString(config_name); + } auto cli_config = FileFinder::Root().OpenOrCreateInputStream(config_file); if (!cli_config) {