summaryrefslogtreecommitdiff
path: root/Source/Core
diff options
context:
space:
mode:
authorLPFaint99 <lpfaint99@gmail.com>2009-06-08 01:23:10 +0000
committerLPFaint99 <lpfaint99@gmail.com>2009-06-08 01:23:10 +0000
commitb701802fcf630c5d8b41add4d19c31e34e511e26 (patch)
tree4471b1ccde58018859c1f0abef58bc1d6e3167c5 /Source/Core
parent09a295779df7a42db221df740fcf5bb6e0f118c9 (diff)
don't save emustate or video hack if it is not set
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@3367 8ced0084-cf51-0410-be5f-012b33b47a6e
Diffstat (limited to 'Source/Core')
-rw-r--r--Source/Core/DolphinWX/Src/ISOProperties.cpp12
1 files changed, 10 insertions, 2 deletions
diff --git a/Source/Core/DolphinWX/Src/ISOProperties.cpp b/Source/Core/DolphinWX/Src/ISOProperties.cpp
index 5787ecd9c3..c231975031 100644
--- a/Source/Core/DolphinWX/Src/ISOProperties.cpp
+++ b/Source/Core/DolphinWX/Src/ISOProperties.cpp
@@ -765,8 +765,16 @@ bool CISOProperties::SaveGameConfig()
else
GameIni.Set("HLEaudio", "UseRE0Fix", UseRE0Fix->Get3StateValue());
- GameIni.Set("Video", "Hack", Hack->GetSelection());
- GameIni.Set("EmuState", "EmulationStateId", EmuState->GetSelection());
+ if (EmuState->GetSelection() == -1)
+ GameIni.DeleteKey("Video", "Hack");
+ else
+ GameIni.Set("Video", "Hack", Hack->GetSelection());
+
+ if (EmuState->GetSelection() == -1)
+ GameIni.DeleteKey("EmuState", "EmulationStateId");
+ else
+ GameIni.Set("EmuState", "EmulationStateId", EmuState->GetSelection());
+
GameIni.Set("EmuState", "EmulationIssues", EmuIssues->GetValue());
PatchList_Save();