all repos — mgba @ 54c4da8f8a3b2b239ed8c29de0a0069f5bf96c26

mGBA Game Boy Advance Emulator

GBA BIOS: Fix BitUnPack final byte
Vicki Pfau vi@endrift.com
Sun, 24 Jun 2018 18:38:00 -0700
commit

54c4da8f8a3b2b239ed8c29de0a0069f5bf96c26

parent

04f3fdf21ea5bc446c461fc427eec2f0eb46417f

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

jump to
M CHANGESCHANGES

@@ -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.csrc/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;