summaryrefslogtreecommitdiff
path: root/Source/Core/VideoBackends/Software/TextureSampler.cpp
diff options
context:
space:
mode:
authorLéo Lam <leo@innovatetechnologi.es>2017-07-02 21:32:03 +0200
committerLéo Lam <leo@innovatetechnologi.es>2017-07-21 17:42:59 +0800
commitfbcc6bbd5719e37b8e1dc1a68e3b3bdd5b1cf7a7 (patch)
treeb9d7c9ae277b99334e7d50842deb07a2c4c1ae92 /Source/Core/VideoBackends/Software/TextureSampler.cpp
parente608d79f424dae9371ebe0df27fbb0c9e53b9afe (diff)
IOS/ES: Use the correct key for imports/exports
Imports/exports don't always use the title key. Exporting a title and importing it back uses the PRNG key (aka backup key handle or key #5), not the title key (at all). To make things even more fun, some versions of IOS have a bug that causes it to use a zeroed key instead of the PRNG key. When Nintendo decided to fix it, they added checks to keep using the zeroed key only in affected titles to avoid making existing exports useless. (Thanks to tueidj for drawing my attention to this. I missed this edge case during the initial implementation.) This commit implements these checks so we are using the correct key in all of these cases. We now also use IOSC for decryption/encryption since built-in key handles are used. And we now reject any invalid common key index, just like ES.
Diffstat (limited to 'Source/Core/VideoBackends/Software/TextureSampler.cpp')
0 files changed, 0 insertions, 0 deletions