mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-01-10 08:09:26 +01:00
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:
parent
ca7e4bd179
commit
a9728b50b9
@ -308,7 +308,7 @@ void CISOProperties::CreateGUIControls(bool IsWad)
|
|||||||
arrayStringFor_Hack.Add(_("Harvest Moon Magical Melody"));
|
arrayStringFor_Hack.Add(_("Harvest Moon Magical Melody"));
|
||||||
arrayStringFor_Hack.Add(_("Baten Kaitos"));
|
arrayStringFor_Hack.Add(_("Baten Kaitos"));
|
||||||
arrayStringFor_Hack.Add(_("Baten Kaitos Origin"));
|
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);
|
Hack = new wxChoice(m_GameConfig, ID_HACK, wxDefaultPosition, wxDefaultSize, arrayStringFor_Hack, 0, wxDefaultValidator);
|
||||||
|
|
||||||
|
|
||||||
@ -679,7 +679,7 @@ void CISOProperties::LoadGameConfig()
|
|||||||
else
|
else
|
||||||
UseRE0Fix->Set3StateValue(wxCHK_UNDETERMINED);
|
UseRE0Fix->Set3StateValue(wxCHK_UNDETERMINED);
|
||||||
|
|
||||||
GameIni.Get("Video", "Hack", &iTemp, -1);
|
GameIni.Get("Video", "ProjectionHack", &iTemp, -1);
|
||||||
Hack->SetSelection(iTemp);
|
Hack->SetSelection(iTemp);
|
||||||
|
|
||||||
GameIni.Get("EmuState", "EmulationStateId", &iTemp, -1);
|
GameIni.Get("EmuState", "EmulationStateId", &iTemp, -1);
|
||||||
@ -770,9 +770,9 @@ bool CISOProperties::SaveGameConfig()
|
|||||||
GameIni.Set("HLEaudio", "UseRE0Fix", UseRE0Fix->Get3StateValue());
|
GameIni.Set("HLEaudio", "UseRE0Fix", UseRE0Fix->Get3StateValue());
|
||||||
|
|
||||||
if (EmuState->GetSelection() == -1)
|
if (EmuState->GetSelection() == -1)
|
||||||
GameIni.DeleteKey("Video", "Hack");
|
GameIni.DeleteKey("Video", "ProjectionHack");
|
||||||
else
|
else
|
||||||
GameIni.Set("Video", "Hack", Hack->GetSelection());
|
GameIni.Set("Video", "ProjectionHack", Hack->GetSelection());
|
||||||
|
|
||||||
if (EmuState->GetSelection() == -1)
|
if (EmuState->GetSelection() == -1)
|
||||||
GameIni.DeleteKey("EmuState", "EmulationStateId");
|
GameIni.DeleteKey("EmuState", "EmulationStateId");
|
||||||
|
@ -434,6 +434,7 @@ void ConfigDialog::CreateGUIControls()
|
|||||||
m_PhackvalueCB->Append(wxT("Harvest Moon Magical Melody"));
|
m_PhackvalueCB->Append(wxT("Harvest Moon Magical Melody"));
|
||||||
m_PhackvalueCB->Append(wxT("Baten Kaitos"));
|
m_PhackvalueCB->Append(wxT("Baten Kaitos"));
|
||||||
m_PhackvalueCB->Append(wxT("Baten Kaitos Origin"));
|
m_PhackvalueCB->Append(wxT("Baten Kaitos Origin"));
|
||||||
|
m_PhackvalueCB->Append(wxT("Skies of Arcadia"));
|
||||||
m_PhackvalueCB->SetSelection(g_Config.iPhackvalue);
|
m_PhackvalueCB->SetSelection(g_Config.iPhackvalue);
|
||||||
|
|
||||||
// Default values
|
// Default values
|
||||||
@ -809,6 +810,12 @@ void Config::UpdateProjectionHack()
|
|||||||
g_Config.fhackvalue2 = 1.9988f;
|
g_Config.fhackvalue2 = 1.9988f;
|
||||||
g_Config.bProjHack1 = 1;
|
g_Config.bProjHack1 = 1;
|
||||||
break;
|
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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -42,7 +42,8 @@ enum
|
|||||||
OGL_HACK_FINAL_FANTASY_CC_ECHO_OF_TIME = 6,
|
OGL_HACK_FINAL_FANTASY_CC_ECHO_OF_TIME = 6,
|
||||||
OGL_HACK_HARVESTMOON_MM = 7,
|
OGL_HACK_HARVESTMOON_MM = 7,
|
||||||
OGL_HACK_BATEN_KAITOS = 8,
|
OGL_HACK_BATEN_KAITOS = 8,
|
||||||
OGL_HACK_BATEN_KAITOS_ORIGIN = 9
|
OGL_HACK_BATEN_KAITOS_ORIGIN = 9,
|
||||||
|
OGL_HACK_SKIES_OF_ARCADIA = 10
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user