From 24fe03366190d21f4f0db460eb0eaeaa026498c7 Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Fri, 18 Jul 2003 08:05:39 +0000 Subject: [PATCH] add m_bShowConsole --- stepmania/src/PrefsManager.h | 1 + stepmania/src/StepMania.cpp | 8 ++++---- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/stepmania/src/PrefsManager.h b/stepmania/src/PrefsManager.h index bdf78c5f22..e32b5f65a2 100644 --- a/stepmania/src/PrefsManager.h +++ b/stepmania/src/PrefsManager.h @@ -81,6 +81,7 @@ public: bool m_bFirstRun; bool m_bAutoMapJoysticks; float m_fGlobalOffsetSeconds; + bool m_bShowConsole; bool m_bTenFooterInRed; /* 0 = no; 1 = yes; -1 = auto (do whatever is appropriate for the arch). */ diff --git a/stepmania/src/StepMania.cpp b/stepmania/src/StepMania.cpp index 56d56929f0..83fe445ca6 100644 --- a/stepmania/src/StepMania.cpp +++ b/stepmania/src/StepMania.cpp @@ -439,10 +439,6 @@ int main(int argc, char* argv[]) * Do it after ChangeToDirOfExecutable, so the log ends up in the right place. */ LOG = new RageLog(); -#ifdef DEBUG - LOG->ShowConsole(); -#endif - /* Whew--we should be able to crash safely now! */ atexit(SDL_Quit); /* Clean up on exit */ @@ -473,6 +469,10 @@ int main(int argc, char* argv[]) // GAMESTATE = new GameState; PREFSMAN = new PrefsManager; + + if( PREFSMAN->m_bShowConsole ) + LOG->ShowConsole(); + CheckSettings(); GAMEMAN = new GameManager;