From b87d2477c5d43292e63cfe45ba3983156aa59782 Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Thu, 4 Mar 2004 22:25:30 +0000 Subject: [PATCH] set up log earlier --- stepmania/src/StepMania.cpp | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/stepmania/src/StepMania.cpp b/stepmania/src/StepMania.cpp index 16347f6108..57fa3fd16d 100644 --- a/stepmania/src/StepMania.cpp +++ b/stepmania/src/StepMania.cpp @@ -878,6 +878,15 @@ int main(int argc, char* argv[]) // PREFSMAN = new PrefsManager; + LOG->SetShowLogOutput( PREFSMAN->m_bShowLogOutput ); + LOG->SetLogToDisk( PREFSMAN->m_bLogToDisk ); + LOG->SetInfoToDisk( true ); + LOG->SetFlushing( PREFSMAN->m_bForceLogFlush ); + LOG->SetTimestamping( PREFSMAN->m_bTimestamping ); + Checkpoints::LogCheckpoints( PREFSMAN->m_bLogCheckpoints ); + + WriteLogHeader(); + /* Set up alternative filesystem trees. */ if( PREFSMAN->m_sAdditionalFolders != "" ) { @@ -906,15 +915,6 @@ int main(int argc, char* argv[]) // GAMESTATE = new GameState; - LOG->SetShowLogOutput( PREFSMAN->m_bShowLogOutput ); - LOG->SetLogToDisk( PREFSMAN->m_bLogToDisk ); - LOG->SetInfoToDisk( true ); - LOG->SetFlushing( PREFSMAN->m_bForceLogFlush ); - LOG->SetTimestamping( PREFSMAN->m_bTimestamping ); - Checkpoints::LogCheckpoints( PREFSMAN->m_bLogCheckpoints ); - - WriteLogHeader(); - /* This requires PREFSMAN, for PREFSMAN->m_bShowLoadingWindow. */ LoadingWindow *loading_window = MakeLoadingWindow(); if( loading_window == NULL )