From e3fbfc4bda38a5b341bdc5a28fe024933f747465 Mon Sep 17 00:00:00 2001 From: Nekotekina Date: Mon, 21 Jul 2014 20:39:00 +0400 Subject: [PATCH] Logging option restored --- rpcs3/Emu/SysCalls/LogBase.h | 20 +++++++++++++------- 1 file changed, 13 insertions(+), 7 deletions(-) diff --git a/rpcs3/Emu/SysCalls/LogBase.h b/rpcs3/Emu/SysCalls/LogBase.h index 9be179baec..3c583aa8e6 100644 --- a/rpcs3/Emu/SysCalls/LogBase.h +++ b/rpcs3/Emu/SysCalls/LogBase.h @@ -5,16 +5,22 @@ class LogBase bool m_logging; public: - LogBase() - : m_logging(false) - { - } - void SetLogging(bool value) { m_logging = value; } + bool GetLogging() + { + //return m_logging; // TODO + return Ini.HLELogging.GetValue(); + } + + LogBase() + { + SetLogging(false); + } + virtual const std::string& GetName() const = 0; template void Notice(const u32 id, const char* fmt, Targs... args) @@ -29,7 +35,7 @@ public: template __forceinline void Log(const char* fmt, Targs... args) { - if (m_logging) + if (GetLogging()) { Notice(fmt, args...); } @@ -37,7 +43,7 @@ public: template __forceinline void Log(const u32 id, const char* fmt, Targs... args) { - if (m_logging) + if (GetLogging()) { Notice(id, fmt, args...); }