summaryrefslogtreecommitdiff
path: root/Source/Core/VideoCommon/VideoConfig.cpp
diff options
context:
space:
mode:
authordegasus <wickmarkus@web.de>2015-10-09 20:50:36 +0200
committerdegasus <wickmarkus@web.de>2016-01-06 22:10:29 +0100
commitefbe5bc4b651d1f7f726bb064255e0e2562f7490 (patch)
tree6166a471269a9b1eb2bf703a31c915489e428b44 /Source/Core/VideoCommon/VideoConfig.cpp
parent7fcb5a803b2e6179fe57654496fcea7f6b2ff183 (diff)
VideoSW: Use more VideoCommon
Now we require lots of empty functions, but this removes by far more duplicated code.
Diffstat (limited to 'Source/Core/VideoCommon/VideoConfig.cpp')
-rw-r--r--Source/Core/VideoCommon/VideoConfig.cpp17
1 files changed, 17 insertions, 0 deletions
diff --git a/Source/Core/VideoCommon/VideoConfig.cpp b/Source/Core/VideoCommon/VideoConfig.cpp
index 626e1f0bd0..50486d716a 100644
--- a/Source/Core/VideoCommon/VideoConfig.cpp
+++ b/Source/Core/VideoCommon/VideoConfig.cpp
@@ -87,6 +87,15 @@ void VideoConfig::Load(const std::string& ini_file)
settings->Get("EnableShaderDebugging", &bEnableShaderDebugging, false);
settings->Get("BorderlessFullscreen", &bBorderlessFullscreen, false);
+ settings->Get("SWZComploc", &bZComploc, true);
+ settings->Get("SWZFreeze", &bZFreeze, true);
+ settings->Get("SWDumpObjects", &bDumpObjects, false);
+ settings->Get("SWDumpTevStages", &bDumpTevStages, false);
+ settings->Get("SWDumpTevTexFetches", &bDumpTevTextureFetches, false);
+ settings->Get("SWDrawStart", &drawStart, 0);
+ settings->Get("SWDrawEnd", &drawEnd, 100000);
+
+
IniFile::Section* enhancements = iniFile.GetOrCreateSection("Enhancements");
enhancements->Get("ForceFiltering", &bForceFiltering, 0);
enhancements->Get("MaxAnisotropy", &iMaxAnisotropy, 0); // NOTE - this is x in (1 << x)
@@ -287,6 +296,14 @@ void VideoConfig::Save(const std::string& ini_file)
settings->Set("EnableShaderDebugging", bEnableShaderDebugging);
settings->Set("BorderlessFullscreen", bBorderlessFullscreen);
+ settings->Set("SWZComploc", bZComploc);
+ settings->Set("SWZFreeze", bZFreeze);
+ settings->Set("SWDumpObjects", bDumpObjects);
+ settings->Set("SWDumpTevStages", bDumpTevStages);
+ settings->Set("SWDumpTevTexFetches", bDumpTevTextureFetches);
+ settings->Set("SWDrawStart", drawStart);
+ settings->Set("SWDrawEnd", drawEnd);
+
IniFile::Section* enhancements = iniFile.GetOrCreateSection("Enhancements");
enhancements->Set("ForceFiltering", bForceFiltering);
enhancements->Set("MaxAnisotropy", iMaxAnisotropy);