[Glide64] Clean up how log is created

This commit is contained in:
zilmar 2016-05-01 12:46:06 +10:00
parent 6ea406643b
commit e4e3b1aa77
1 changed files with 1 additions and 2 deletions

View File

@ -78,12 +78,11 @@ void SetupTrace(void)
return; return;
} }
CPath LogFilePath(log_dir); CPath LogFilePath(log_dir, "Glide64.log");
if (!LogFilePath.DirectoryExists()) if (!LogFilePath.DirectoryExists())
{ {
LogFilePath.DirectoryCreate(); LogFilePath.DirectoryCreate();
} }
LogFilePath.SetNameExtension("Glide64.log");
g_LogFile = new CTraceFileLog(LogFilePath, GetSystemSetting(Set_log_flush) != 0, CLog::Log_New, 500); g_LogFile = new CTraceFileLog(LogFilePath, GetSystemSetting(Set_log_flush) != 0, CLog::Log_New, 500);
TraceAddModule(g_LogFile); TraceAddModule(g_LogFile);
} }