summaryrefslogtreecommitdiff
path: root/Source/Core/VideoCommon/VideoConfig.cpp
diff options
context:
space:
mode:
authorPierre Bourdon <delroth@gmail.com>2016-01-06 23:29:51 +0100
committerPierre Bourdon <delroth@gmail.com>2016-01-06 23:29:51 +0100
commit3c65a7dd7f665eaea093806cfc280e3692b70aec (patch)
tree6166a471269a9b1eb2bf703a31c915489e428b44 /Source/Core/VideoCommon/VideoConfig.cpp
parent7fcb5a803b2e6179fe57654496fcea7f6b2ff183 (diff)
parentefbe5bc4b651d1f7f726bb064255e0e2562f7490 (diff)
Merge pull request #3156 from degasus/videosw2
VideoSW: Use VideoCommon framework and drop redundant 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);