mirror of https://github.com/mgba-emu/mgba.git
Fix Huffman with tree sizes >127
This commit is contained in:
parent
3ca0a97ca1
commit
9d08997fdc
|
@ -357,7 +357,7 @@ static void _unHuffman(struct GBAMemory* memory, uint32_t source, uint32_t* dest
|
||||||
remaining &= 0xFFFFFFFC;
|
remaining &= 0xFFFFFFFC;
|
||||||
// We assume the signature byte (0x20) is correct
|
// We assume the signature byte (0x20) is correct
|
||||||
//var tree = [];
|
//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;
|
int block = 0;
|
||||||
uint32_t treeBase = source + 5;
|
uint32_t treeBase = source + 5;
|
||||||
uint32_t sPointer = source + 5 + treesize;
|
uint32_t sPointer = source + 5 + treesize;
|
||||||
|
|
Loading…
Reference in New Issue