Minor fix disable G3D log

This commit is contained in:
raven02 2013-01-15 20:57:35 +08:00
parent 5ca532646c
commit dde889d2e3
3 changed files with 8 additions and 0 deletions

View file

@ -45,6 +45,7 @@ struct CoreParameter
std::string mountIso; // If non-empty, and fileToStart is an ELF or PBP, will mount this ISO in the background.
bool startPaused;
bool disableG3Dlog;
bool enableDebugging; // enables breakpoints and other time-consuming debugger features
bool printfEmuLog; // writes "emulator:" logging to stdout
bool headLess; // Try to avoid messageboxes etc

View file

@ -38,6 +38,7 @@
#include "FileSystems/MetaFileSystem.h"
#include "Loaders.h"
#include "ELF/ParamSFO.h"
#include "../Common/LogManager.h"
MetaFileSystem pspFileSystem;
ParamSFOData g_paramSFO;
@ -59,6 +60,11 @@ bool PSP_Init(const CoreParameter &coreParam, std::string *error_string)
host->InitSound(mixer);
}
if (coreParameter.disableG3Dlog)
{
LogManager::GetInstance()->SetEnable(LogTypes::G3D, false);
}
// Init all the HLE modules
HLEInit();

View file

@ -79,6 +79,7 @@ DWORD TheThread(LPVOID x)
coreParameter.pixelWidth = 480 * g_Config.iWindowZoom;
coreParameter.pixelHeight = 272 * g_Config.iWindowZoom;
coreParameter.startPaused = !g_Config.bAutoRun;
coreParameter.disableG3Dlog = g_Config.bDisableG3DLog;
coreParameter.useMediaEngine = false;
std::string error_string;