add m_bShowConsole
This commit is contained in:
@@ -81,6 +81,7 @@ public:
|
|||||||
bool m_bFirstRun;
|
bool m_bFirstRun;
|
||||||
bool m_bAutoMapJoysticks;
|
bool m_bAutoMapJoysticks;
|
||||||
float m_fGlobalOffsetSeconds;
|
float m_fGlobalOffsetSeconds;
|
||||||
|
bool m_bShowConsole;
|
||||||
bool m_bTenFooterInRed;
|
bool m_bTenFooterInRed;
|
||||||
|
|
||||||
/* 0 = no; 1 = yes; -1 = auto (do whatever is appropriate for the arch). */
|
/* 0 = no; 1 = yes; -1 = auto (do whatever is appropriate for the arch). */
|
||||||
|
|||||||
@@ -439,10 +439,6 @@ int main(int argc, char* argv[])
|
|||||||
* Do it after ChangeToDirOfExecutable, so the log ends up in the right place. */
|
* Do it after ChangeToDirOfExecutable, so the log ends up in the right place. */
|
||||||
LOG = new RageLog();
|
LOG = new RageLog();
|
||||||
|
|
||||||
#ifdef DEBUG
|
|
||||||
LOG->ShowConsole();
|
|
||||||
#endif
|
|
||||||
|
|
||||||
/* Whew--we should be able to crash safely now! */
|
/* Whew--we should be able to crash safely now! */
|
||||||
|
|
||||||
atexit(SDL_Quit); /* Clean up on exit */
|
atexit(SDL_Quit); /* Clean up on exit */
|
||||||
@@ -473,6 +469,10 @@ int main(int argc, char* argv[])
|
|||||||
//
|
//
|
||||||
GAMESTATE = new GameState;
|
GAMESTATE = new GameState;
|
||||||
PREFSMAN = new PrefsManager;
|
PREFSMAN = new PrefsManager;
|
||||||
|
|
||||||
|
if( PREFSMAN->m_bShowConsole )
|
||||||
|
LOG->ShowConsole();
|
||||||
|
|
||||||
CheckSettings();
|
CheckSettings();
|
||||||
|
|
||||||
GAMEMAN = new GameManager;
|
GAMEMAN = new GameManager;
|
||||||
|
|||||||
Reference in New Issue
Block a user