summaryrefslogtreecommitdiff
path: root/Source/Core
diff options
context:
space:
mode:
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();