git-svn-id: svn://svn.icculus.org/netradiant/trunk@87 61c419a2-8eb2-4b30-bcec-8cead039b335

This commit is contained in:
rpolzer
2008-09-18 09:39:06 +00:00
parent 8a1ebd7397
commit 01a2a09b61
14 changed files with 26 additions and 2 deletions

View File

@@ -54,6 +54,8 @@ void Sys_LogFile(bool enable)
if (enable && !g_hLogFile)
{
// settings say we should be logging and we don't have a log file .. so create it
if(!SettingsPath_get()[0])
return; // cannot open a log file yet
// open a file to log the console (if user prefs say so)
// the file handle is g_hLogFile
// the log file is erased