X-Git-Url: https://git.artsoft.org/?a=blobdiff_plain;f=src%2Flibgame%2Fsystem.c;h=b3ad0f287a7f3c3b4fdee38f65158fff3ed63836;hb=2a1101854ff7336e35d52f76a3114870c8a6b15d;hp=5aac42f888b26a257973d6c8b44b790e7db7163b;hpb=3b0023fd3eacaecffa0ae6c9107c11d3abd4ac6c;p=rocksndiamonds.git diff --git a/src/libgame/system.c b/src/libgame/system.c index 5aac42f8..b3ad0f28 100644 --- a/src/libgame/system.c +++ b/src/libgame/system.c @@ -95,6 +95,7 @@ void InitProgramInfo(char *argv0, program.version_patch = VERSION_PATCH(program_version); program.error_filename = getErrorFilename(ERROR_BASENAME); + program.error_file = stderr; } void InitExitFunction(void (*exit_function)(int)) @@ -118,7 +119,7 @@ void InitPlatformDependentStuff(void) #endif #if defined(PLATFORM_WIN32) || defined(PLATFORM_MSDOS) - initErrorFile(); + openErrorFile(); #endif #if defined(TARGET_SDL) @@ -131,6 +132,10 @@ void InitPlatformDependentStuff(void) void ClosePlatformDependentStuff(void) { +#if defined(PLATFORM_WIN32) || defined(PLATFORM_MSDOS) + closeErrorFile(); +#endif + #if defined(PLATFORM_MSDOS) dumpErrorFile(); #endif