Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fix loading of the 'projection hack enabled' gameini setting
Fixes issue 6614.
  • Loading branch information
delroth committed Sep 18, 2013
1 parent 28f2bd3 commit 7aa98a3
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Source/Core/VideoCommon/Src/VideoConfig.cpp
Expand Up @@ -202,7 +202,10 @@ void VideoConfig::GameIniLoad(const char* default_ini_file, const char* local_in
CHECK_SETTING("Video_Hacks", "EFBCopyCacheEnable", bEFBCopyCacheEnable);
CHECK_SETTING("Video_Hacks", "EFBEmulateFormatChanges", bEFBEmulateFormatChanges);

CHECK_SETTING("Video", "ProjectionHack", iPhackvalue[0]);
// XXX: iPhackvalue[0] aka. projection hack enabled is an integer. WTF.
bool phack_enabled = iPhackvalue[0];
CHECK_SETTING("Video", "ProjectionHack", phack_enabled);
iPhackvalue[0] = phack_enabled;
CHECK_SETTING("Video", "PH_SZNear", iPhackvalue[1]);
CHECK_SETTING("Video", "PH_SZFar", iPhackvalue[2]);
CHECK_SETTING("Video", "PH_ExtraParam", iPhackvalue[3]);
Expand Down

0 comments on commit 7aa98a3

Please sign in to comment.