From 2448cc74fba9165a7fa8c73fe8ab22e624a270c1 Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Sun, 5 Sep 2004 01:24:41 +0000 Subject: [PATCH] do HOOKS->DumpDebugInfo before OnFirstRun --- stepmania/src/StepMania.cpp | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/stepmania/src/StepMania.cpp b/stepmania/src/StepMania.cpp index 45b11ab442..ecfdfee4b0 100644 --- a/stepmania/src/StepMania.cpp +++ b/stepmania/src/StepMania.cpp @@ -998,7 +998,7 @@ int main(int argc, char* argv[]) SetupSDL(); #endif - /* This should be done after PREFSMAN is set up, so it can use Dialog::OK(). */ + /* This needs PREFSMAN. */ Dialog::Init(); // @@ -1016,11 +1016,15 @@ int main(int argc, char* argv[]) srand( time(NULL) ); // seed number generator + /* Do this early, so we have debugging output if anything else fails. LOG and + * Dialog must be set up first. It shouldn't take long, but it might take a + * little time; do this after the LoadingWindow is shown, since we don't want + * that to appear delayed. */ + HOOKS->DumpDebugInfo(); + if( PREFSMAN->m_bFirstRun ) OnFirstRun(); - HOOKS->DumpDebugInfo(); - CheckSettings(); GAMEMAN = new GameManager;