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:
The Dax committed 2013-07-27 19:39:49 -04:00
1 parent 8602c276ca
commit 528d81151a
6 files changed
+25 -6

No files matched your search

+3
View File
@@ -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())