From efbe5bc4b651d1f7f726bb064255e0e2562f7490 Mon Sep 17 00:00:00 2001 From: degasus Date: Fri, 9 Oct 2015 20:50:36 +0200 Subject: VideoSW: Use more VideoCommon Now we require lots of empty functions, but this removes by far more duplicated code. --- .../Core/VideoBackends/Software/SWVideoConfig.cpp | 91 ---------------------- 1 file changed, 91 deletions(-) delete mode 100644 Source/Core/VideoBackends/Software/SWVideoConfig.cpp (limited to 'Source/Core/VideoBackends/Software/SWVideoConfig.cpp') 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); -} - -- cgit v1.2.3