git.y1.nz

SameBoy

Accurate GB/GBC emulator
download: https://git.y1.nz/archives/sameboy.tar.gz
README | Files | Log | Refs | LICENSE

commit 58750424c7564659ba60a9840c1f12839293c1e6
parent 2c7343a6ad4db4e3cc9bc3de53c2f6ba01983f6b
Author: Lior Halphon <LIJI32@gmail.com>
Date:   Sat, 20 Aug 2022 13:09:08 +0300

Fully reset the MBC, for correct ROM switching. Fixes #489

Diffstat:
MCore/mbc.c1+
1 file changed, 1 insertion(+), 0 deletions(-)

diff --git a/Core/mbc.c b/Core/mbc.c @@ -253,6 +253,7 @@ void GB_configure_cart(GB_gameboy_t *gb) void GB_reset_mbc(GB_gameboy_t *gb) { + memset(GB_GET_SECTION(gb, mbc), 0, GB_SECTION_SIZE(mbc)); if (gb->cartridge_type->mbc_type == GB_MMM01) { gb->mbc_rom_bank = -1; gb->mbc_rom0_bank = -2;

This webpage is intended to be an accessible preview of this repository. To get a fuller picture, clone it and use the git CLI.