Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Really fix reading projection hacks from game inis.
  • Loading branch information
RachelBryk committed Sep 17, 2013
1 parent e3d01de commit 47ce3dd
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions Source/Core/DolphinWX/Src/ISOProperties.cpp
Expand Up @@ -1025,20 +1025,20 @@ void CISOProperties::LoadGameConfig()
if (GameIniLocal.Get("Video", "PH_ExtraParam", &bTemp))
PHack_Data.PHackExP = bTemp;

std::string sTemp;
GameIniDefault.Get("Video", "PH_ZNear", &PHack_Data.PHZNear);
if (GameIniLocal.Get("Video", "PH_ZNear", &bTemp))
PHack_Data.PHZNear = bTemp;
if (GameIniLocal.Get("Video", "PH_ZNear", &sTemp))
PHack_Data.PHZNear = sTemp;
GameIniDefault.Get("Video", "PH_ZFar", &PHack_Data.PHZFar);
if (GameIniLocal.Get("Video", "PH_ZFar", &bTemp))
PHack_Data.PHZFar = bTemp;
if (GameIniLocal.Get("Video", "PH_ZFar", &sTemp))
PHack_Data.PHZFar = sTemp;

int iTemp;
GameIniDefault.Get("EmuState", "EmulationStateId", &iTemp, 0/*Not Set*/);
EmuState->SetSelection(iTemp);
if (GameIniLocal.Get("EmuState", "EmulationStateId", &iTemp, 0/*Not Set*/))
EmuState->SetSelection(iTemp);

std::string sTemp;
GameIniDefault.Get("EmuState", "EmulationIssues", &sTemp);
if (!sTemp.empty())
EmuIssues->SetValue(StrToWxStr(sTemp));
Expand Down

0 comments on commit 47ce3dd

Please sign in to comment.