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
This commit is contained in:
death2droid 2009-06-10 01:26:42 +00:00
parent ca7e4bd179
commit a9728b50b9
3 changed files with 13 additions and 5 deletions

View File

@ -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");

View File

@ -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;
}
}

View File

@ -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
};