all repos — mgba @ 9d08997fdcccf8fd5c0909e2ae8f8902c7db436c

mGBA Game Boy Advance Emulator

Fix Huffman with tree sizes >127
Jeffrey Pfau jeffrey@endrift.com
Sun, 13 Oct 2013 03:25:46 -0700
commit

9d08997fdcccf8fd5c0909e2ae8f8902c7db436c

parent

3ca0a97ca1c04b03beafea9b60652ccac87258e5

1 files changed, 1 insertions(+), 1 deletions(-)

jump to
M src/gba/gba-bios.csrc/gba/gba-bios.c

@@ -357,7 +357,7 @@ int padding = (4 - remaining) & 0x3;

remaining &= 0xFFFFFFFC; // We assume the signature byte (0x20) is correct //var tree = []; - int treesize = (memory->d.load8(&memory->d, source + 4, 0) << 1) + 1; + int treesize = (memory->d.loadU8(&memory->d, source + 4, 0) << 1) + 1; int block = 0; uint32_t treeBase = source + 5; uint32_t sPointer = source + 5 + treesize;