From e8525a3e449eba6c91dcb8bf2660afe960dd6902 Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Thu, 14 Aug 2003 23:02:55 +0000 Subject: [PATCH] reorder DumpDebugInfo --- stepmania/src/StepMania.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/stepmania/src/StepMania.cpp b/stepmania/src/StepMania.cpp index bc58bb18f9..ac353b68ac 100644 --- a/stepmania/src/StepMania.cpp +++ b/stepmania/src/StepMania.cpp @@ -470,11 +470,8 @@ int main(int argc, char* argv[]) loading_window->Paint(); - // changed to use time. GetTimeSinceStart is silly because it always return 0! -Chris srand( time(NULL) ); // seed number generator - HOOKS->DumpDebugInfo(); - // // Create game objects // @@ -484,6 +481,10 @@ int main(int argc, char* argv[]) if( PREFSMAN->m_bShowLogWindow ) LOG->ShowConsole(); + /* This should be done after PREFSMAN is set up, so it can use HOOKS->MessageBoxOK, + * but before we do more complex things that might crash. */ + HOOKS->DumpDebugInfo(); + LOG->SetLogging( PREFSMAN->m_bLogging ); CheckSettings();