mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-10-11 05:26:24 +02:00
Initial support for disabling logging, to provide a possible boost in performance for games that spam the log like crazy.
This commit is contained in:
1 parent
8602c276ca
commit
528d81151a
6 files changed
+25
-6
No files matched your search
@@ -22,6 +22,7 @@
|
||||
#include "Timer.h"
|
||||
#include "Thread.h"
|
||||
#include "FileUtil.h"
|
||||
#include "../Core/Config.h"
|
||||
#ifdef __SYMBIAN32__
|
||||
#include <e32debug.h>
|
||||
#endif
|
||||
@@ -36,6 +37,8 @@ const char *hleCurrentThreadName = NULL;
|
||||
void GenericLog(LogTypes::LOG_LEVELS level, LogTypes::LOG_TYPE type,
|
||||
const char *file, int line, const char* fmt, ...)
|
||||
{
|
||||
if(!g_Config.bEnableLogging) return;
|
||||
|
||||
va_list args;
|
||||
va_start(args, fmt);
|
||||
if (LogManager::GetInstance())
|
||||
|
||||
Reference in new issue
Block a user