diff options
| author | degasus <wickmarkus@web.de> | 2015-10-09 20:50:36 +0200 |
|---|---|---|
| committer | degasus <wickmarkus@web.de> | 2016-01-06 22:10:29 +0100 |
| commit | efbe5bc4b651d1f7f726bb064255e0e2562f7490 (patch) | |
| tree | 6166a471269a9b1eb2bf703a31c915489e428b44 /Source/Core/VideoBackends/Software/SWVideoConfig.cpp | |
| parent | 7fcb5a803b2e6179fe57654496fcea7f6b2ff183 (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/VideoBackends/Software/SWVideoConfig.cpp')
| -rw-r--r-- | Source/Core/VideoBackends/Software/SWVideoConfig.cpp | 91 |
1 files changed, 0 insertions, 91 deletions
diff --git a/Source/Core/VideoBackends/Software/SWVideoConfig.cpp b/Source/Core/VideoBackends/Software/SWVideoConfig.cpp deleted file mode 100644 index 4bd011e2df..0000000000 --- a/Source/Core/VideoBackends/Software/SWVideoConfig.cpp +++ /dev/null @@ -1,91 +0,0 @@ -// Copyright 2009 Dolphin Emulator Project -// Licensed under GPLv2+ -// Refer to the license.txt file included. - -#include "Common/FileUtil.h" -#include "Common/IniFile.h" -#include "VideoBackends/Software/SWVideoConfig.h" - -SWVideoConfig g_SWVideoConfig; - -SWVideoConfig::SWVideoConfig() -{ - bFullscreen = false; - bHideCursor = false; - renderToMainframe = false; - - bBypassXFB = false; - - bShowStats = false; - - bDumpTextures = false; - bDumpObjects = false; - - bZComploc = true; - bZFreeze = true; - - bDumpTevStages = false; - bDumpTevTextureFetches = false; - - drawStart = 0; - drawEnd = 100000; -} - -void SWVideoConfig::Load(const char* ini_file) -{ - IniFile iniFile; - iniFile.Load(ini_file); - - IniFile::Section* hardware = iniFile.GetOrCreateSection("Hardware"); - hardware->Get("Fullscreen", &bFullscreen, 0); // Hardware - hardware->Get("RenderToMainframe", &renderToMainframe, false); - - IniFile::Section* rendering = iniFile.GetOrCreateSection("Rendering"); - rendering->Get("BypassXFB", &bBypassXFB, false); - rendering->Get("ZComploc", &bZComploc, true); - rendering->Get("ZFreeze", &bZFreeze, true); - - IniFile::Section* info = iniFile.GetOrCreateSection("Info"); - info->Get("ShowStats", &bShowStats, false); - - IniFile::Section* utility = iniFile.GetOrCreateSection("Utility"); - utility->Get("DumpTexture", &bDumpTextures, false); - utility->Get("DumpObjects", &bDumpObjects, false); - utility->Get("DumpTevStages", &bDumpTevStages, false); - utility->Get("DumpTevTexFetches", &bDumpTevTextureFetches, false); - - IniFile::Section* misc = iniFile.GetOrCreateSection("Misc"); - misc->Get("DrawStart", &drawStart, 0); - misc->Get("DrawEnd", &drawEnd, 100000); -} - -void SWVideoConfig::Save(const char* ini_file) -{ - IniFile iniFile; - iniFile.Load(ini_file); - - IniFile::Section* hardware = iniFile.GetOrCreateSection("Hardware"); - hardware->Set("Fullscreen", bFullscreen); - hardware->Set("RenderToMainframe", renderToMainframe); - - IniFile::Section* rendering = iniFile.GetOrCreateSection("Rendering"); - rendering->Set("BypassXFB", bBypassXFB); - rendering->Set("ZComploc", bZComploc); - rendering->Set("ZFreeze", bZFreeze); - - IniFile::Section* info = iniFile.GetOrCreateSection("Info"); - info->Set("ShowStats", bShowStats); - - IniFile::Section* utility = iniFile.GetOrCreateSection("Utility"); - utility->Set("DumpTexture", bDumpTextures); - utility->Set("DumpObjects", bDumpObjects); - utility->Set("DumpTevStages", bDumpTevStages); - utility->Set("DumpTevTexFetches", bDumpTevTextureFetches); - - IniFile::Section* misc = iniFile.GetOrCreateSection("Misc"); - misc->Set("DrawStart", drawStart); - misc->Set("DrawEnd", drawEnd); - - iniFile.Save(ini_file); -} - |
