projects
/
rocksndiamonds.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
rnd-20060727-2-src
[rocksndiamonds.git]
/
src
/
libgame
/
system.c
diff --git
a/src/libgame/system.c
b/src/libgame/system.c
index 5aac42f888b26a257973d6c8b44b790e7db7163b..b3ad0f287a7f3c3b4fdee38f65158fff3ed63836 100644
(file)
--- 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.version_patch = VERSION_PATCH(program_version);
program.error_filename = getErrorFilename(ERROR_BASENAME);
+ program.error_file = stderr;
}
void InitExitFunction(void (*exit_function)(int))
}
void InitExitFunction(void (*exit_function)(int))
@@
-118,7
+119,7
@@
void InitPlatformDependentStuff(void)
#endif
#if defined(PLATFORM_WIN32) || defined(PLATFORM_MSDOS)
#endif
#if defined(PLATFORM_WIN32) || defined(PLATFORM_MSDOS)
-
init
ErrorFile();
+
open
ErrorFile();
#endif
#if defined(TARGET_SDL)
#endif
#if defined(TARGET_SDL)
@@
-131,6
+132,10
@@
void InitPlatformDependentStuff(void)
void ClosePlatformDependentStuff(void)
{
void ClosePlatformDependentStuff(void)
{
+#if defined(PLATFORM_WIN32) || defined(PLATFORM_MSDOS)
+ closeErrorFile();
+#endif
+
#if defined(PLATFORM_MSDOS)
dumpErrorFile();
#endif
#if defined(PLATFORM_MSDOS)
dumpErrorFile();
#endif