GBA BIOS: Fix BitUnPack final byte
Vicki Pfau vi@endrift.com
Sun, 24 Jun 2018 18:38:00 -0700
2 files changed,
2 insertions(+),
1 deletions(-)
M
CHANGES
→
CHANGES
@@ -7,6 +7,7 @@ - GB Video: Fix enabling window when LY > WY (fixes mgba.io/i/409)
- PowerPC: Fix several potential crashes (fixes mgba.io/i/1089) - Qt: Fix build with Qt 5.11 (fixes mgba.io/i/1094) - GBA Serialize: Fix loading channel 3 volume (fixes mgba.io/i/1107) + - GBA BIOS: Fix BitUnPack final byte 0.6.3: (2017-04-14) Bugfixes:
M
src/gba/bios.c
→
src/gba/bios.c
@@ -803,7 +803,7 @@ uint8_t in = 0;
uint32_t out = 0; int bitsRemaining = 0; int bitsEaten = 0; - while (sourceLen > 0) { + while (sourceLen > 0 || bitsRemaining) { if (!bitsRemaining) { in = cpu->memory.load8(cpu, source, 0); bitsRemaining = 8;