RiivolutionPatcher: Ignore last two bits of offset in file patches to match console behavior.
This commit is contained in:
parent
6ec4af7ea4
commit
588c31acb6
|
@ -298,7 +298,8 @@ static void ApplyPatchToFile(const Patch& patch, DiscIO::FSTBuilderNode* file_no
|
|||
static void ApplyPatchToFile(const Patch& patch, const File& file_patch,
|
||||
DiscIO::FSTBuilderNode* file_node)
|
||||
{
|
||||
ApplyPatchToFile(patch, file_node, file_patch.m_external, file_patch.m_offset,
|
||||
// The last two bits of the offset seem to be ignored by actual Riivolution.
|
||||
ApplyPatchToFile(patch, file_node, file_patch.m_external, file_patch.m_offset & ~u64(3),
|
||||
file_patch.m_fileoffset, file_patch.m_length, file_patch.m_resize);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue