Skip to content

Commit

Permalink
Local Settings - First Commit
Browse files Browse the repository at this point in the history
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
  • Loading branch information
jetrotal committed Aug 1, 2024
1 parent 4077070 commit e1487de
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/game_config.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit e1487de

Please sign in to comment.