[Ohrrpgce] SVN: teeemcee/12501 Unify Game/Custom config handling and allow <gamename>_config.ini by the
subversion at HamsterRepublic.com
subversion at HamsterRepublic.com
Tue Sep 28 05:45:26 PDT 2021
teeemcee
2021-09-28 05:45:21 -0700 (Tue, 28 Sep 2021)
860
Unify Game/Custom config handling and allow <gamename>_config.ini by the .rpg to override gameconfig.ini
Custom and Game now both:
-global_config_file is ohrrpgce_config.ini in app_dir, or else in settings_dir
-game_config_file is <gamename>_config.ini next to .rpg, or else $prefsdir/gameconfig.ini
-Read from game_config_file, fall back to global_config_file
-Write game-specific settings to game_config_file, others to global_config_file
Previously (to previous commit):
-Custom looked first for ohrrpgce_config.ini by the .rpg, then in app_dir, then in settings_dir. (If one was found the others were ignored)
-Game looked for ohrrpgce_config.ini first in app_dir, then in settings_dir.
-Game first tried to read from gameconfig.ini then fell back to ohrrpgce_config.ini
-Game wrote game-specific settings to gameconfig.ini
-Custom ignored gameconfig.ini
---
U wip/common.rbas
U wip/custom.bas
U wip/whatsnew.txt
More information about the Ohrrpgce
mailing list