From ffc1ee829b61593119f3b8d618a236b32e9fd1e0 Mon Sep 17 00:00:00 2001 From: Thomas Fischer Date: Mon, 15 Apr 2013 18:58:29 +0200 Subject: [PATCH] moved filesystem init further up, to be able to log errors earlier --- Engine/source/app/mainLoop.cpp | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/Engine/source/app/mainLoop.cpp b/Engine/source/app/mainLoop.cpp index 0e81030e2..f89b4c435 100644 --- a/Engine/source/app/mainLoop.cpp +++ b/Engine/source/app/mainLoop.cpp @@ -241,6 +241,16 @@ void StandardMainLoop::init() DebugOutputConsumer::init(); #endif + // init Filesystem first, so we can actually log errors for all components that follow + Platform::FS::InstallFileSystems(); // install all drives for now until we have everything using the volume stuff + Platform::FS::MountDefaults(); + + // Set our working directory. + Torque::FS::SetCwd( "game:/" ); + + // Set our working directory. + Platform::setCurrentDirectory( Platform::getMainDotCsDir() ); + Processor::init(); Math::init(); Platform::init(); // platform specific initialization @@ -386,15 +396,6 @@ bool StandardMainLoop::handleCommandLine( S32 argc, const char **argv ) for (i = 0; i < argc; i++) Con::setVariable(avar("Game::argv%d", i), argv[i]); - Platform::FS::InstallFileSystems(); // install all drives for now until we have everything using the volume stuff - Platform::FS::MountDefaults(); - - // Set our working directory. - Torque::FS::SetCwd( "game:/" ); - - // Set our working directory. - Platform::setCurrentDirectory( Platform::getMainDotCsDir() ); - #ifdef TORQUE_PLAYER if(argc > 2 && dStricmp(argv[1], "-project") == 0) {