set up log earlier
This commit is contained in:
@@ -878,6 +878,15 @@ int main(int argc, char* argv[])
|
|||||||
//
|
//
|
||||||
PREFSMAN = new PrefsManager;
|
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. */
|
/* Set up alternative filesystem trees. */
|
||||||
if( PREFSMAN->m_sAdditionalFolders != "" )
|
if( PREFSMAN->m_sAdditionalFolders != "" )
|
||||||
{
|
{
|
||||||
@@ -906,15 +915,6 @@ int main(int argc, char* argv[])
|
|||||||
//
|
//
|
||||||
GAMESTATE = new GameState;
|
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. */
|
/* This requires PREFSMAN, for PREFSMAN->m_bShowLoadingWindow. */
|
||||||
LoadingWindow *loading_window = MakeLoadingWindow();
|
LoadingWindow *loading_window = MakeLoadingWindow();
|
||||||
if( loading_window == NULL )
|
if( loading_window == NULL )
|
||||||
|
|||||||
Reference in New Issue
Block a user