From b701802fcf630c5d8b41add4d19c31e34e511e26 Mon Sep 17 00:00:00 2001 From: LPFaint99 Date: Mon, 8 Jun 2009 01:23:10 +0000 Subject: [PATCH] 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 --- Source/Core/DolphinWX/Src/ISOProperties.cpp | 12 ++++++++++-- 1 file 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();