32-bit align the arm9 stream position before starting a new code cave. Fixes #6.

This commit is contained in:
Prof. 9 2014-05-24 06:26:33 +02:00
parent 21d1ca0a61
commit 83c15e48ad

View File

@ -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