summaryrefslogtreecommitdiff
path: root/Source/Core/InputCommon/ControlReference/FunctionExpression.cpp
diff options
context:
space:
mode:
authorJosJuice <josjuice@gmail.com>2020-04-19 15:34:02 +0200
committerJosJuice <josjuice@gmail.com>2020-06-17 13:47:34 +0200
commite5b9e1ba1f7a8c7a48671f947cf096e0f4cb0fe9 (patch)
treed14ef72d94d7270b88f698479646e09edd06dddd /Source/Core/InputCommon/ControlReference/FunctionExpression.cpp
parent40e46aee57f5ac589c538f0e740effab50275cbf (diff)
WIA: Reuse groups when writing
This is useful for the way Dolphin scrubs Wii discs. The encrypted data is what gets zeroed out, but this zeroed out data then gets decrypted before being stored, and the resulting data does not compress well. However, each block of decrypted scrubbed data is identical given the same encryption key, and there's nothing stopping us from making multiple group entries point to the same offset in the file, so we only have to store one copy of this data per partition. For reference, wit zeroes out the decrypted data, but Dolphin's WIA writer can't do this because it currently doesn't know which parts of the disc are scrubbed. This is also useful for things such as storing Datel discs full of 0x55 blocks (repesenting unreadable blocks) without compression enabled.
Diffstat (limited to 'Source/Core/InputCommon/ControlReference/FunctionExpression.cpp')
0 files changed, 0 insertions, 0 deletions