X-Git-Url: https://git.artsoft.org/?a=blobdiff_plain;f=src%2Flibgame%2Fsystem.c;h=b3ad0f287a7f3c3b4fdee38f65158fff3ed63836;hb=2a1101854ff7336e35d52f76a3114870c8a6b15d;hp=1bc35d68cc55852748482c2b4efea814bf90d9fa;hpb=8a7afb2e699aa06f01070fce0c446545e2efc0a3;p=rocksndiamonds.git diff --git a/src/libgame/system.c b/src/libgame/system.c index 1bc35d68..b3ad0f28 100644 --- a/src/libgame/system.c +++ b/src/libgame/system.c @@ -93,6 +93,9 @@ void InitProgramInfo(char *argv0, program.version_major = VERSION_MAJOR(program_version); program.version_minor = VERSION_MINOR(program_version); program.version_patch = VERSION_PATCH(program_version); + + program.error_filename = getErrorFilename(ERROR_BASENAME); + program.error_file = stderr; } void InitExitFunction(void (*exit_function)(int)) @@ -116,7 +119,7 @@ void InitPlatformDependentStuff(void) #endif #if defined(PLATFORM_WIN32) || defined(PLATFORM_MSDOS) - initErrorFile(); + openErrorFile(); #endif #if defined(TARGET_SDL) @@ -129,6 +132,10 @@ void InitPlatformDependentStuff(void) void ClosePlatformDependentStuff(void) { +#if defined(PLATFORM_WIN32) || defined(PLATFORM_MSDOS) + closeErrorFile(); +#endif + #if defined(PLATFORM_MSDOS) dumpErrorFile(); #endif