[Project64] Use setting to get log dir
This commit is contained in:
parent
043f0465cb
commit
959a77dcde
|
@ -614,10 +614,7 @@ void CLogging::StartLog(void)
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
CPath LogFile(g_Settings->LoadStringVal(Cmd_BaseDirectory).c_str(),"");
|
CPath LogFile(g_Settings->LoadStringVal(Directory_Log).c_str(), "cpudebug.log");
|
||||||
LogFile.AppendDirectory("Logs");
|
|
||||||
LogFile.SetNameExtension("cpudebug.log");
|
|
||||||
|
|
||||||
m_hLogFile = new CFile(LogFile, CFileBase::modeCreate | CFileBase::modeWrite);
|
m_hLogFile = new CFile(LogFile, CFileBase::modeCreate | CFileBase::modeWrite);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -1160,8 +1160,7 @@ void CN64System::DumpSyncErrors(CN64System * SecondCPU)
|
||||||
int count;
|
int count;
|
||||||
|
|
||||||
{
|
{
|
||||||
CPath ErrorFile(g_Settings->LoadStringVal(Cmd_BaseDirectory).c_str(), "Sync Errors.txt");
|
CPath ErrorFile(g_Settings->LoadStringVal(Directory_Log).c_str(), "Sync Errors.txt");
|
||||||
ErrorFile.AppendDirectory("Logs");
|
|
||||||
|
|
||||||
CLog Error;
|
CLog Error;
|
||||||
Error.Open(ErrorFile);
|
Error.Open(ErrorFile);
|
||||||
|
|
|
@ -33,9 +33,7 @@ void x86_Log_Message (const char * Message, ...)
|
||||||
|
|
||||||
void Start_x86_Log (void)
|
void Start_x86_Log (void)
|
||||||
{
|
{
|
||||||
CPath LogFileName(CPath::MODULE_DIRECTORY);
|
CPath LogFileName(g_Settings->LoadStringVal(Directory_Log).c_str(), "CPUoutput.log");
|
||||||
LogFileName.AppendDirectory("Logs");
|
|
||||||
LogFileName.SetNameExtension("CPUoutput.log");
|
|
||||||
|
|
||||||
if (hCPULogFile) { Stop_x86_Log(); }
|
if (hCPULogFile) { Stop_x86_Log(); }
|
||||||
hCPULogFile = CreateFile(LogFileName,GENERIC_WRITE, FILE_SHARE_READ|FILE_SHARE_WRITE,NULL,
|
hCPULogFile = CreateFile(LogFileName,GENERIC_WRITE, FILE_SHARE_READ|FILE_SHARE_WRITE,NULL,
|
||||||
|
|
Loading…
Reference in New Issue