diff options
author | erorcun <erorcunerorcun@hotmail.com.tr> | 2021-02-11 23:49:09 +0100 |
---|---|---|
committer | erorcun <erorcunerorcun@hotmail.com.tr> | 2021-02-12 19:09:23 +0100 |
commit | 2c784d979a88035176082edf986a2c02b9073338 (patch) | |
tree | c44455912d2de60f4c0381c035d44b997c525cbc /src/core/re3.cpp | |
parent | Sync aspect ratio setting with master (diff) | |
download | re3-2c784d979a88035176082edf986a2c02b9073338.tar re3-2c784d979a88035176082edf986a2c02b9073338.tar.gz re3-2c784d979a88035176082edf986a2c02b9073338.tar.bz2 re3-2c784d979a88035176082edf986a2c02b9073338.tar.lz re3-2c784d979a88035176082edf986a2c02b9073338.tar.xz re3-2c784d979a88035176082edf986a2c02b9073338.tar.zst re3-2c784d979a88035176082edf986a2c02b9073338.zip |
Diffstat (limited to 'src/core/re3.cpp')
-rw-r--r-- | src/core/re3.cpp | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/src/core/re3.cpp b/src/core/re3.cpp index 779a7d13..9773b880 100644 --- a/src/core/re3.cpp +++ b/src/core/re3.cpp @@ -457,6 +457,10 @@ bool LoadINISettings() #ifdef FIX_SPRITES ReadIniIfExists("Draw", "FixSprites", &CDraw::ms_bFixSprites); #endif +#ifdef TOGGLEABLE_VERSION_TEXT + extern bool gDrawVersionText; + ReadIniIfExists("General", "DrawVersionText", &gDrawVersionText); +#endif #ifdef CUSTOM_FRONTEND_OPTIONS bool migrate = cfg.category_size("FrontendOptions") != 0; @@ -550,6 +554,10 @@ void SaveINISettings() #ifdef FIX_SPRITES StoreIni("Draw", "FixSprites", CDraw::ms_bFixSprites); #endif +#ifdef TOGGLEABLE_VERSION_TEXT + extern bool gDrawVersionText; + StoreIni("General", "DrawVersionText", gDrawVersionText); +#endif #ifdef CUSTOM_FRONTEND_OPTIONS for (int i = 0; i < MENUPAGES; i++) { for (int j = 0; j < NUM_MENUROWS; j++) { @@ -988,7 +996,11 @@ extern bool gbRenderWorld2; #ifdef FIX_SPRITES DebugMenuAddVarBool8("Draw", "Fix Sprites", &CDraw::ms_bFixSprites, nil); #endif - + +#ifdef TOGGLEABLE_VERSION_TEXT + extern bool gDrawVersionText; + DebugMenuAddVarBool8("Debug", "Version Text", &gDrawVersionText, nil); +#endif #ifndef FINAL DebugMenuAddVarBool8("Debug", "Print Memory Usage", &gbPrintMemoryUsage, nil); #ifdef USE_CUSTOM_ALLOCATOR |