mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-03-12 14:46:49 +01:00
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,
|
static void ApplyPatchToFile(const Patch& patch, const File& file_patch,
|
||||||
DiscIO::FSTBuilderNode* file_node)
|
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);
|
file_patch.m_fileoffset, file_patch.m_length, file_patch.m_resize);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user