From 122f9dfbe3d5a9776d14f7b2943c3eb44ca6ae39 Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Tue, 5 Aug 2003 01:28:11 +0000 Subject: [PATCH] include more in try...catch --- stepmania/src/StepMania.cpp | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) 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();