summaryrefslogtreecommitdiff
path: root/Source/Core
diff options
context:
space:
mode:
authorShawn Hoffman <godisgovernment@gmail.com>2010-11-11 01:00:01 +0000
committerShawn Hoffman <godisgovernment@gmail.com>2010-11-11 01:00:01 +0000
commitce7c5099c76ff267f5edc51fea591ec1b226d4cd (patch)
tree4deb3cb26a76548031af394f09442210b3d7055c /Source/Core
parent5078f430c3277a00e0a7ba42f449bf6e4f74072b (diff)
make projection hack and emustate settings default to none/not set instead of -1
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@6376 8ced0084-cf51-0410-be5f-012b33b47a6e
Diffstat (limited to 'Source/Core')
-rw-r--r--Source/Core/DolphinWX/Src/ISOProperties.cpp14
1 files changed, 4 insertions, 10 deletions
diff --git a/Source/Core/DolphinWX/Src/ISOProperties.cpp b/Source/Core/DolphinWX/Src/ISOProperties.cpp
index 7ecda54a78..23a9a1f6d1 100644
--- a/Source/Core/DolphinWX/Src/ISOProperties.cpp
+++ b/Source/Core/DolphinWX/Src/ISOProperties.cpp
@@ -918,10 +918,10 @@ void CISOProperties::LoadGameConfig()
else
WMTightness->SetValue(wxT("50"));
- GameIni.Get("Video", "ProjectionHack", &iTemp, -1);
+ GameIni.Get("Video", "ProjectionHack", &iTemp, 0/*None*/);
Hack->SetSelection(iTemp);
- GameIni.Get("EmuState", "EmulationStateId", &iTemp, -1);
+ GameIni.Get("EmuState", "EmulationStateId", &iTemp, 0/*Not Set*/);
EmuState->SetSelection(iTemp);
GameIni.Get("EmuState", "EmulationIssues", &sTemp);
@@ -1029,10 +1029,7 @@ bool CISOProperties::SaveGameConfig()
else
GameIni.Set("Video", "DlistCachingEnable", DListCache->Get3StateValue());
- if (Hack->GetSelection() == -1)
- GameIni.DeleteKey("Video", "ProjectionHack");
- else
- GameIni.Set("Video", "ProjectionHack", Hack->GetSelection());
+ GameIni.Set("Video", "ProjectionHack", Hack->GetSelection());
if (WMTightness->GetValue().size() == 0)
GameIni.DeleteKey("Video", "FIFOWatermarkTightness");
@@ -1043,10 +1040,7 @@ bool CISOProperties::SaveGameConfig()
GameIni.Set("Video", "FIFOWatermarkTightness", (int)val);
}
- if (EmuState->GetSelection() == -1)
- GameIni.DeleteKey("EmuState", "EmulationStateId");
- else
- GameIni.Set("EmuState", "EmulationStateId", EmuState->GetSelection());
+ GameIni.Set("EmuState", "EmulationStateId", EmuState->GetSelection());
GameIni.Set("EmuState", "EmulationIssues", (const char*)EmuIssues->GetValue().mb_str(*wxConvCurrent));