diff options
| author | erorcun <erayorcunus@gmail.com> | 2021-02-12 18:15:51 +0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-02-12 18:15:51 +0300 |
| commit | a44d7d86cb66ff584eb497ec1efb70d11d58288d (patch) | |
| tree | c4e99fefd4af077dfe7a7479978d013cf14f6ff6 /src/core/re3.cpp | |
| parent | Update TXDs (diff) | |
| parent | Fix sha1 on premake linux (diff) | |
| download | re3-a44d7d86cb66ff584eb497ec1efb70d11d58288d.tar.gz | |
Merge pull request #1029 from erorcun/master
Remove version text, add toggleable debug info(with commit hash!)
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..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 |
