diff options
author | erorcun <erorcunerorcun@hotmail.com.tr> | 2021-02-11 23:49:09 +0100 |
---|---|---|
committer | erorcun <erorcunerorcun@hotmail.com.tr> | 2021-02-12 03:28:08 +0100 |
commit | 9e1c048e206d4e91d03ef8978bf61a6af654fc3b (patch) | |
tree | 1dac0da5ad8bddee9197139937b8f284c8cfac05 /src/core/re3.cpp | |
parent | better controller menu txds (diff) | |
download | re3-9e1c048e206d4e91d03ef8978bf61a6af654fc3b.tar re3-9e1c048e206d4e91d03ef8978bf61a6af654fc3b.tar.gz re3-9e1c048e206d4e91d03ef8978bf61a6af654fc3b.tar.bz2 re3-9e1c048e206d4e91d03ef8978bf61a6af654fc3b.tar.lz re3-9e1c048e206d4e91d03ef8978bf61a6af654fc3b.tar.xz re3-9e1c048e206d4e91d03ef8978bf61a6af654fc3b.tar.zst re3-9e1c048e206d4e91d03ef8978bf61a6af654fc3b.zip |
Diffstat (limited to 'src/core/re3.cpp')
-rw-r--r-- | src/core/re3.cpp | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/src/core/re3.cpp b/src/core/re3.cpp index 3584e226..80e89ca4 100644 --- a/src/core/re3.cpp +++ b/src/core/re3.cpp @@ -508,6 +508,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; @@ -595,6 +599,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++) { @@ -985,7 +993,10 @@ extern bool gbRenderWorld2; #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 |