[Glide64] Clean up how log is created
This commit is contained in:
parent
6ea406643b
commit
e4e3b1aa77
|
@ -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);
|
||||||
}
|
}
|
Loading…
Reference in New Issue