[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;
|
||||
}
|
||||
|
||||
CPath LogFile(g_Settings->LoadStringVal(Cmd_BaseDirectory).c_str(),"");
|
||||
LogFile.AppendDirectory("Logs");
|
||||
LogFile.SetNameExtension("cpudebug.log");
|
||||
|
||||
CPath LogFile(g_Settings->LoadStringVal(Directory_Log).c_str(), "cpudebug.log");
|
||||
m_hLogFile = new CFile(LogFile, CFileBase::modeCreate | CFileBase::modeWrite);
|
||||
}
|
||||
|
||||
|
|
|
@ -1160,8 +1160,7 @@ void CN64System::DumpSyncErrors(CN64System * SecondCPU)
|
|||
int count;
|
||||
|
||||
{
|
||||
CPath ErrorFile(g_Settings->LoadStringVal(Cmd_BaseDirectory).c_str(), "Sync Errors.txt");
|
||||
ErrorFile.AppendDirectory("Logs");
|
||||
CPath ErrorFile(g_Settings->LoadStringVal(Directory_Log).c_str(), "Sync Errors.txt");
|
||||
|
||||
CLog Error;
|
||||
Error.Open(ErrorFile);
|
||||
|
|
|
@ -33,9 +33,7 @@ void x86_Log_Message (const char * Message, ...)
|
|||
|
||||
void Start_x86_Log (void)
|
||||
{
|
||||
CPath LogFileName(CPath::MODULE_DIRECTORY);
|
||||
LogFileName.AppendDirectory("Logs");
|
||||
LogFileName.SetNameExtension("CPUoutput.log");
|
||||
CPath LogFileName(g_Settings->LoadStringVal(Directory_Log).c_str(), "CPUoutput.log");
|
||||
|
||||
if (hCPULogFile) { Stop_x86_Log(); }
|
||||
hCPULogFile = CreateFile(LogFileName,GENERIC_WRITE, FILE_SHARE_READ|FILE_SHARE_WRITE,NULL,
|
||||
|
|
Loading…
Reference in New Issue