summaryrefslogtreecommitdiff
path: root/Source/Core/VideoCommon/PostProcessing.cpp
diff options
context:
space:
mode:
authorJosJuice <josjuice@gmail.com>2019-07-14 15:01:07 +0200
committerJosJuice <josjuice@gmail.com>2019-07-21 09:58:16 +0200
commit4b73d18eaad4ec6a69e7ed2b17fc4b5649746ab5 (patch)
tree2e679cfd8372e86a36b329a1505a4a17395cc076 /Source/Core/VideoCommon/PostProcessing.cpp
parent4ee73dbad35aa17de48787711a2e118d04558867 (diff)
Re-implement FixCommonKeyIndex for WAD files
The old implementation of this was not able to distinguish between a title that had the common key index set to 1 because it actually was Korean and a title that had the common key index set to 1 due to fakesigning. This new implementation solves the problem by decrypting a content with each possible common key and checking which result matches the provided SHA-1 hash. The problem that the old implementation causes has only been reported to affect a certain pirated WAD of Chronos Twins DX (WC6EUP), but it's possible that the problem would start affecting more WADs if we add support for the vWii common key (which uses index 2). Adding support for the vWii common key would also prevent us from using the simpler solution of always forcing the index to 0 if the title is not Korean.
Diffstat (limited to 'Source/Core/VideoCommon/PostProcessing.cpp')
0 files changed, 0 insertions, 0 deletions