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 03:28:08 +0100
commit9e1c048e206d4e91d03ef8978bf61a6af654fc3b (patch)
tree1dac0da5ad8bddee9197139937b8f284c8cfac05 /src/core/re3.cpp
parentbetter controller menu txds (diff)
downloadre3-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.cpp13
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