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))
{
#if defined(PLATFORM_MSDOS)
_fmode = O_BINARY;
- initErrorFile();
+#endif
+
+#if defined(PLATFORM_WIN32) || defined(PLATFORM_MSDOS)
+ openErrorFile();
#endif
#if defined(TARGET_SDL)
void ClosePlatformDependentStuff(void)
{
+#if defined(PLATFORM_WIN32) || defined(PLATFORM_MSDOS)
+ closeErrorFile();
+#endif
+
#if defined(PLATFORM_MSDOS)
dumpErrorFile();
#endif
else
tmp_bitmap_1 = old_bitmap;
+ /* this is only needed to make compilers happy */
+ tmp_bitmap_2 = tmp_bitmap_8 = NULL;
+
if (create_small_bitmaps)
{
/* calculate new image dimensions for small images */