mirror of
https://github.com/Prof9/WfcReplay.git
synced 2026-04-25 07:18:16 -05:00
32-bit align the arm9 stream position before starting a new code cave. Fixes #6.
This commit is contained in:
parent
21d1ca0a61
commit
83c15e48ad
|
|
@ -354,7 +354,6 @@ namespace WfcReplay
|
|||
|
||||
// Start at +0x10
|
||||
arm9Reader.BaseStream.Position += 0x10;
|
||||
|
||||
long start = arm9Reader.BaseStream.Position;
|
||||
long length;
|
||||
while (arm9Reader.BaseStream.Position < 0x800)
|
||||
|
|
@ -378,6 +377,7 @@ namespace WfcReplay
|
|||
{
|
||||
arm9Reader.BaseStream.Position -= 2;
|
||||
}
|
||||
arm9Reader.BaseStream.Position = (arm9Reader.BaseStream.Position + 3) & ~0x3;
|
||||
start = arm9Reader.BaseStream.Position;
|
||||
}
|
||||
else
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user