diff --git a/stepmania/src/StepMania.cpp b/stepmania/src/StepMania.cpp index c2ac6fc09c..d020eaaa4b 100644 --- a/stepmania/src/StepMania.cpp +++ b/stepmania/src/StepMania.cpp @@ -449,6 +449,12 @@ int main(int argc, char* argv[]) /* Set up arch hooks first. This may set up crash handling. */ HOOKS = MakeArchHooks(); + CString g_sErrorString = ""; + +#ifndef DEBUG + try{ +#endif + ChangeToDirOfExecutable(argv[0]); /* Set this up second. Do this early, since it's needed for RageException::Throw. @@ -464,13 +470,6 @@ int main(int argc, char* argv[]) int SDL_flags = SDL_INIT_NOPARACHUTE; SDL_Init(SDL_flags); - CString g_sErrorString = ""; - -#ifndef DEBUG - try{ -#endif - - LoadingWindow *loading_window = MakeLoadingWindow(); loading_window->Paint();