mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-01-09 23:59:27 +01:00
Really fix reading projection hacks from game inis.
This commit is contained in:
parent
e3d01de01d
commit
47ce3dd09d
@ -1025,12 +1025,13 @@ void CISOProperties::LoadGameConfig()
|
|||||||
if (GameIniLocal.Get("Video", "PH_ExtraParam", &bTemp))
|
if (GameIniLocal.Get("Video", "PH_ExtraParam", &bTemp))
|
||||||
PHack_Data.PHackExP = bTemp;
|
PHack_Data.PHackExP = bTemp;
|
||||||
|
|
||||||
|
std::string sTemp;
|
||||||
GameIniDefault.Get("Video", "PH_ZNear", &PHack_Data.PHZNear);
|
GameIniDefault.Get("Video", "PH_ZNear", &PHack_Data.PHZNear);
|
||||||
if (GameIniLocal.Get("Video", "PH_ZNear", &bTemp))
|
if (GameIniLocal.Get("Video", "PH_ZNear", &sTemp))
|
||||||
PHack_Data.PHZNear = bTemp;
|
PHack_Data.PHZNear = sTemp;
|
||||||
GameIniDefault.Get("Video", "PH_ZFar", &PHack_Data.PHZFar);
|
GameIniDefault.Get("Video", "PH_ZFar", &PHack_Data.PHZFar);
|
||||||
if (GameIniLocal.Get("Video", "PH_ZFar", &bTemp))
|
if (GameIniLocal.Get("Video", "PH_ZFar", &sTemp))
|
||||||
PHack_Data.PHZFar = bTemp;
|
PHack_Data.PHZFar = sTemp;
|
||||||
|
|
||||||
int iTemp;
|
int iTemp;
|
||||||
GameIniDefault.Get("EmuState", "EmulationStateId", &iTemp, 0/*Not Set*/);
|
GameIniDefault.Get("EmuState", "EmulationStateId", &iTemp, 0/*Not Set*/);
|
||||||
@ -1038,7 +1039,6 @@ void CISOProperties::LoadGameConfig()
|
|||||||
if (GameIniLocal.Get("EmuState", "EmulationStateId", &iTemp, 0/*Not Set*/))
|
if (GameIniLocal.Get("EmuState", "EmulationStateId", &iTemp, 0/*Not Set*/))
|
||||||
EmuState->SetSelection(iTemp);
|
EmuState->SetSelection(iTemp);
|
||||||
|
|
||||||
std::string sTemp;
|
|
||||||
GameIniDefault.Get("EmuState", "EmulationIssues", &sTemp);
|
GameIniDefault.Get("EmuState", "EmulationIssues", &sTemp);
|
||||||
if (!sTemp.empty())
|
if (!sTemp.empty())
|
||||||
EmuIssues->SetValue(StrToWxStr(sTemp));
|
EmuIssues->SetValue(StrToWxStr(sTemp));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user