From a9728b50b9168a2eb7c8dea6c83c5e90f2f36bfa Mon Sep 17 00:00:00 2001 From: death2droid Date: Wed, 10 Jun 2009 01:26:42 +0000 Subject: [PATCH] Fix for setting projection hacks in ISO Properties. And added a projection hack for Skies of Arcadia by downloadaja. git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@3402 8ced0084-cf51-0410-be5f-012b33b47a6e --- Source/Core/DolphinWX/Src/ISOProperties.cpp | 8 ++++---- Source/Plugins/Plugin_VideoOGL/Src/GUI/ConfigDlg.cpp | 7 +++++++ Source/Plugins/Plugin_VideoOGL/Src/GUI/ConfigDlg.h | 3 ++- 3 files changed, 13 insertions(+), 5 deletions(-) diff --git a/Source/Core/DolphinWX/Src/ISOProperties.cpp b/Source/Core/DolphinWX/Src/ISOProperties.cpp index 1bccf49fa5..7dfd984611 100644 --- a/Source/Core/DolphinWX/Src/ISOProperties.cpp +++ b/Source/Core/DolphinWX/Src/ISOProperties.cpp @@ -308,7 +308,7 @@ void CISOProperties::CreateGUIControls(bool IsWad) arrayStringFor_Hack.Add(_("Harvest Moon Magical Melody")); arrayStringFor_Hack.Add(_("Baten Kaitos")); arrayStringFor_Hack.Add(_("Baten Kaitos Origin")); - + arrayStringFor_Hack.Add(_("Skies of Arcadia")); Hack = new wxChoice(m_GameConfig, ID_HACK, wxDefaultPosition, wxDefaultSize, arrayStringFor_Hack, 0, wxDefaultValidator); @@ -679,7 +679,7 @@ void CISOProperties::LoadGameConfig() else UseRE0Fix->Set3StateValue(wxCHK_UNDETERMINED); - GameIni.Get("Video", "Hack", &iTemp, -1); + GameIni.Get("Video", "ProjectionHack", &iTemp, -1); Hack->SetSelection(iTemp); GameIni.Get("EmuState", "EmulationStateId", &iTemp, -1); @@ -770,9 +770,9 @@ bool CISOProperties::SaveGameConfig() GameIni.Set("HLEaudio", "UseRE0Fix", UseRE0Fix->Get3StateValue()); if (EmuState->GetSelection() == -1) - GameIni.DeleteKey("Video", "Hack"); + GameIni.DeleteKey("Video", "ProjectionHack"); else - GameIni.Set("Video", "Hack", Hack->GetSelection()); + GameIni.Set("Video", "ProjectionHack", Hack->GetSelection()); if (EmuState->GetSelection() == -1) GameIni.DeleteKey("EmuState", "EmulationStateId"); diff --git a/Source/Plugins/Plugin_VideoOGL/Src/GUI/ConfigDlg.cpp b/Source/Plugins/Plugin_VideoOGL/Src/GUI/ConfigDlg.cpp index 59e5ca4ec8..5eab134b6a 100644 --- a/Source/Plugins/Plugin_VideoOGL/Src/GUI/ConfigDlg.cpp +++ b/Source/Plugins/Plugin_VideoOGL/Src/GUI/ConfigDlg.cpp @@ -434,6 +434,7 @@ void ConfigDialog::CreateGUIControls() m_PhackvalueCB->Append(wxT("Harvest Moon Magical Melody")); m_PhackvalueCB->Append(wxT("Baten Kaitos")); m_PhackvalueCB->Append(wxT("Baten Kaitos Origin")); + m_PhackvalueCB->Append(wxT("Skies of Arcadia")); m_PhackvalueCB->SetSelection(g_Config.iPhackvalue); // Default values @@ -809,6 +810,12 @@ void Config::UpdateProjectionHack() g_Config.fhackvalue2 = 1.9988f; g_Config.bProjHack1 = 1; break; + case OGL_HACK_SKIES_OF_ARCADIA: + g_Config.bPhackvalue1 = 1; + g_Config.fhackvalue1 = 0.04f; + g_Config.bPhackvalue2 = 0; + g_Config.bProjHack1 = 0; + break; } } diff --git a/Source/Plugins/Plugin_VideoOGL/Src/GUI/ConfigDlg.h b/Source/Plugins/Plugin_VideoOGL/Src/GUI/ConfigDlg.h index 4b20cad874..d7137c327c 100644 --- a/Source/Plugins/Plugin_VideoOGL/Src/GUI/ConfigDlg.h +++ b/Source/Plugins/Plugin_VideoOGL/Src/GUI/ConfigDlg.h @@ -42,7 +42,8 @@ enum OGL_HACK_FINAL_FANTASY_CC_ECHO_OF_TIME = 6, OGL_HACK_HARVESTMOON_MM = 7, OGL_HACK_BATEN_KAITOS = 8, - OGL_HACK_BATEN_KAITOS_ORIGIN = 9 + OGL_HACK_BATEN_KAITOS_ORIGIN = 9, + OGL_HACK_SKIES_OF_ARCADIA = 10 };