Add mechanism to override setting names used in config file

This commit is contained in:
Jonathan G Rennison
2022-12-09 19:56:17 +00:00
parent e6a38f1d23
commit b9e322ec7a
2 changed files with 27 additions and 3 deletions

View File

@@ -77,12 +77,15 @@ enum SettingType {
enum SettingOnGuiCtrlType {
SOGCT_DESCRIPTION_TEXT, ///< Description text callback
SOGCT_GUI_DROPDOWN_ORDER, ///< SF_GUI_DROPDOWN reordering callback
SOGCT_CFG_NAME, ///< Config file name override
SOGCT_CFG_FALLBACK_NAME, ///< Config file name within group fallback
};
struct SettingOnGuiCtrlData {
SettingOnGuiCtrlType type;
StringID text;
int val;
const char *str = nullptr;
};
struct IniItem;