RSP: Set max log size as 300mb
This commit is contained in:
parent
0e0f0f7618
commit
1af8570315
|
@ -8,17 +8,28 @@
|
||||||
#include <Project64-rsp-core/Settings/RspSettings.h>
|
#include <Project64-rsp-core/Settings/RspSettings.h>
|
||||||
#include <Settings/Settings.h>
|
#include <Settings/Settings.h>
|
||||||
|
|
||||||
CLog * RDPLog = NULL;
|
CLog * RDPLog = nullptr;
|
||||||
CLog * CPULog = NULL;
|
CLog * CPULog = nullptr;
|
||||||
|
|
||||||
void StartCPULog(void)
|
void StartCPULog(void)
|
||||||
{
|
{
|
||||||
if (CPULog == NULL)
|
if (CPULog != nullptr)
|
||||||
{
|
{
|
||||||
char LogDir[260];
|
return;
|
||||||
CPath LogFilePath(GetSystemSettingSz(Set_DirectoryLog, LogDir, sizeof(LogDir)), "RSP_x86Log.txt");
|
}
|
||||||
CPULog = new CLog;
|
char LogDir[260];
|
||||||
CPULog->Open(LogFilePath);
|
CPath LogFilePath(GetSystemSettingSz(Set_DirectoryLog, LogDir, sizeof(LogDir)), "RSP_x86Log.txt");
|
||||||
|
CPULog = new CLog;
|
||||||
|
if (CPULog != nullptr)
|
||||||
|
{
|
||||||
|
if (CPULog->Open(LogFilePath))
|
||||||
|
{
|
||||||
|
CPULog->SetMaxFileSize(300 * CLog::MB);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
StopCPULog();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue