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 )