set up LOG as early as possible
This commit is contained in:
@@ -219,6 +219,15 @@ int main(int argc, char* argv[])
|
|||||||
|
|
||||||
ChangeToDirOfExecutable(argv[0]);
|
ChangeToDirOfExecutable(argv[0]);
|
||||||
|
|
||||||
|
/* Set this up second. Do this early, since it's needed for RageException::Throw.
|
||||||
|
* Do it after ChangeToDirOfExecutable, so the log ends up in the right place. */
|
||||||
|
LOG = new RageLog();
|
||||||
|
#ifdef _DEBUG
|
||||||
|
LOG->ShowConsole();
|
||||||
|
#endif
|
||||||
|
|
||||||
|
/* Whew--we should be able to crash safely now! */
|
||||||
|
|
||||||
atexit(SDL_Quit); /* Clean up on exit */
|
atexit(SDL_Quit); /* Clean up on exit */
|
||||||
|
|
||||||
/* Fire up the SDL, but don't actually start any subsystems. */
|
/* Fire up the SDL, but don't actually start any subsystems. */
|
||||||
@@ -253,10 +262,6 @@ int main(int argc, char* argv[])
|
|||||||
//
|
//
|
||||||
// Create game objects
|
// Create game objects
|
||||||
//
|
//
|
||||||
LOG = new RageLog();
|
|
||||||
#ifdef _DEBUG
|
|
||||||
LOG->ShowConsole();
|
|
||||||
#endif
|
|
||||||
GAMESTATE = new GameState;
|
GAMESTATE = new GameState;
|
||||||
PREFSMAN = new PrefsManager;
|
PREFSMAN = new PrefsManager;
|
||||||
GAMEMAN = new GameManager;
|
GAMEMAN = new GameManager;
|
||||||
|
|||||||
Reference in New Issue
Block a user