]> git.xonotic.org Git - xonotic/darkplaces.git/commitdiff
Close logfile at shutdown.
authortomaz <tomaz@d7cf8633-e32d-0410-b094-e92efae38249>
Sat, 21 Aug 2004 16:42:10 +0000 (16:42 +0000)
committertomaz <tomaz@d7cf8633-e32d-0410-b094-e92efae38249>
Sat, 21 Aug 2004 16:42:10 +0000 (16:42 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@4347 d7cf8633-e32d-0410-b094-e92efae38249

console.h
host.c

index 9f4151822f246d958b56b7c0e59201f8a463f5b6..19dc08ce81f8e9c0cf659ab72d8ca26e93df14cb 100644 (file)
--- a/console.h
+++ b/console.h
@@ -58,6 +58,7 @@ void Con_DisplayList(const char **list);
 // log
 //
 void Log_Init (void);
+void Log_Close (void);
 void Log_Start (void);
 // Log_Print and Log_Printf can be used as soon as the FS initialization is done
 void Log_Print(const char *logfilename, const char *msg);
diff --git a/host.c b/host.c
index 513afcc8658fc5713a911e48b98177c1cb1ff9aa..412f75e92f59def31c0a50b868de2e37f4b63dce 100644 (file)
--- a/host.c
+++ b/host.c
@@ -949,5 +949,6 @@ void Host_Shutdown(void)
        }
 
        Sys_Shutdown();
+       Log_Close ();
 }