mirror of
https://github.com/bsnes-emu/bsnes.git
synced 2025-08-23 22:33:10 +02:00
Fix #144 by ignored malformed commands with 0 length
This commit is contained in:
@@ -98,6 +98,9 @@ static void command_ready(GB_gameboy_t *gb)
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* Ignore malformed commands (0 length)*/
|
||||||
|
if ((gb->sgb->command[0] & 7) == 0) return;
|
||||||
|
|
||||||
switch (gb->sgb->command[0] >> 3) {
|
switch (gb->sgb->command[0] >> 3) {
|
||||||
case PAL01:
|
case PAL01:
|
||||||
pal_command(gb, 0, 1);
|
pal_command(gb, 0, 1);
|
||||||
|
Reference in New Issue
Block a user