Skip to content

Commit

Permalink
gb: start audio when not using bootrom
Browse files Browse the repository at this point in the history
Fixed an issue whereby the audio was not enabled when a bootrom was not
in use. The audio is enabled by the bootrom. Some games, Such as Final
Fantasy Legend III rely on this behaviour to have audio in the game.

Signed-off-by: Mahyar Koshkouei <mk@deltabeard.com>
  • Loading branch information
deltabeard committed Jan 18, 2025
1 parent d69e98d commit be2a321
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions peanut_gb.h
Original file line number Diff line number Diff line change
Expand Up @@ -3561,6 +3561,8 @@ void gb_reset(struct gb_s *gb)
gb->hram_io[IO_STAT] = 0x85;
gb->hram_io[IO_BOOT] = 0x01;

__gb_write(gb, 0xFF26, 0xF1);

memset(gb->vram, 0x00, VRAM_SIZE);
}
else
Expand Down

0 comments on commit be2a321

Please sign in to comment.