summaryrefslogtreecommitdiffstats
path: root/src/core/re3.cpp
diff options
context:
space:
mode:
authorerorcun <erorcunerorcun@hotmail.com.tr>2021-02-11 23:49:09 +0100
committererorcun <erorcunerorcun@hotmail.com.tr>2021-02-12 19:09:23 +0100
commit2c784d979a88035176082edf986a2c02b9073338 (patch)
treec44455912d2de60f4c0381c035d44b997c525cbc /src/core/re3.cpp
parentSync aspect ratio setting with master (diff)
downloadre3-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.cpp14
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