summaryrefslogtreecommitdiff
path: root/Source/Core/VideoBackends/Software/DebugUtil.cpp
diff options
context:
space:
mode:
authorskidau <skidau@gmail.com>2014-10-15 13:42:37 +1100
committerskidau <skidau@gmail.com>2014-10-15 13:42:37 +1100
commit8ef21bc5e292e8060ba2bdd6e55ab6e70a5ec984 (patch)
tree4c7553297675844d44e76d9f9cf0d6cdae6e2bb3 /Source/Core/VideoBackends/Software/DebugUtil.cpp
parent9f5ea81ffed409c6c0533cef08431e0311165f4b (diff)
parent8d424b114ae98243744a118e44d38e0a40645682 (diff)
Merge pull request #1272 from RisingFog/sconfig-dump-frames
Move bDumpFrames to SConfig (and it's references)
Diffstat (limited to 'Source/Core/VideoBackends/Software/DebugUtil.cpp')
-rw-r--r--Source/Core/VideoBackends/Software/DebugUtil.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/Source/Core/VideoBackends/Software/DebugUtil.cpp b/Source/Core/VideoBackends/Software/DebugUtil.cpp
index f5740d5883..dc198c2e99 100644
--- a/Source/Core/VideoBackends/Software/DebugUtil.cpp
+++ b/Source/Core/VideoBackends/Software/DebugUtil.cpp
@@ -6,6 +6,8 @@
#include "Common/FileUtil.h"
#include "Common/StringUtil.h"
+#include "Core/ConfigManager.h"
+
#include "VideoBackends/Software/BPMemLoader.h"
#include "VideoBackends/Software/DebugUtil.h"
#include "VideoBackends/Software/EfbInterface.h"
@@ -253,7 +255,7 @@ void OnFrameEnd(u32 width, u32 height)
{
if (!g_bSkipCurrentFrame)
{
- if (g_SWVideoConfig.bDumpFrames)
+ if (SConfig::GetInstance().m_DumpFrames)
{
DumpColorTexture(StringFromFormat("%sframe%i_color.png",
File::GetUserPath(D_DUMPFRAMES_IDX).c_str(), swstats.frameCount), width, height);