Minor fix disable G3D log

This commit is contained in:
raven02 committed 2013-01-16 08:37:41 +08:00
1 parent 5ca532646c
commit dde889d2e3
3 files changed
+8

No files matched your search

+1
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
+6
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();
+1
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;