summaryrefslogtreecommitdiffstats
path: root/src/core/re3.cpp
diff options
context:
space:
mode:
authorerorcun <erayorcunus@gmail.com>2021-02-12 16:15:51 +0100
committerGitHub <noreply@github.com>2021-02-12 16:15:51 +0100
commita44d7d86cb66ff584eb497ec1efb70d11d58288d (patch)
treec4e99fefd4af077dfe7a7479978d013cf14f6ff6 /src/core/re3.cpp
parentUpdate TXDs (diff)
parentFix sha1 on premake linux (diff)
downloadre3-a44d7d86cb66ff584eb497ec1efb70d11d58288d.tar
re3-a44d7d86cb66ff584eb497ec1efb70d11d58288d.tar.gz
re3-a44d7d86cb66ff584eb497ec1efb70d11d58288d.tar.bz2
re3-a44d7d86cb66ff584eb497ec1efb70d11d58288d.tar.lz
re3-a44d7d86cb66ff584eb497ec1efb70d11d58288d.tar.xz
re3-a44d7d86cb66ff584eb497ec1efb70d11d58288d.tar.zst
re3-a44d7d86cb66ff584eb497ec1efb70d11d58288d.zip
Diffstat (limited to '')
-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..7f7f1f83 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 DRAW_GAME_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 DRAW_GAME_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 DRAW_GAME_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