X-Git-Url: https://git.artsoft.org/?a=blobdiff_plain;ds=sidebyside;f=src%2Flibgame%2Fsystem.c;fp=src%2Flibgame%2Fsystem.c;h=6d99c7c8cd11f346fb9bbe63f92cb735b114c958;hb=bace01c8d5b4baee8776394de380867856d7d61c;hp=51e8df8905b2a0f1e70e6a43e92bb0a12c5c9174;hpb=fc4457661dae8eae32f70060111e74924e0dbf4d;p=rocksndiamonds.git diff --git a/src/libgame/system.c b/src/libgame/system.c index 51e8df89..6d99c7c8 100644 --- a/src/libgame/system.c +++ b/src/libgame/system.c @@ -105,6 +105,11 @@ void InitProgramInfo(char *argv0, program.error_file = stderr; } +void InitExitMessageFunction(void (*exit_message_function)(char *, va_list)) +{ + program.exit_message_function = exit_message_function; +} + void InitExitFunction(void (*exit_function)(int)) { program.exit_function = exit_function; @@ -129,9 +134,13 @@ void InitPlatformDependentStuff(void) updateUserGameDataDir(); #endif +#if 1 + openErrorFile(); +#else #if !defined(PLATFORM_UNIX) || defined(PLATFORM_MACOSX) openErrorFile(); #endif +#endif #if defined(TARGET_SDL) if (SDL_Init(SDL_INIT_EVENTTHREAD | SDL_INIT_NOPARACHUTE) < 0)