git.y1.nz

SameBoy

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

commit d1caeafe5ebe9661e3c66819e52d4bc1dacf005b
parent 9a957674d90883f3d19388c52244501928b92ae0
Author: Lior Halphon <LIJI32@gmail.com>
Date:   Tue,  5 Oct 2021 19:53:43 +0300

Better handling of tiny ROMs

Diffstat:
MCore/gb.c4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/Core/gb.c b/Core/gb.c @@ -284,7 +284,7 @@ int GB_load_rom(GB_gameboy_t *gb, const char *path) gb->rom_size |= gb->rom_size >> 1; gb->rom_size++; } - if (gb->rom_size == 0) { + if (gb->rom_size < 0x8000) { gb->rom_size = 0x8000; } fseek(f, 0, SEEK_SET); @@ -396,7 +396,7 @@ int GB_load_gbs_from_buffer(GB_gameboy_t *gb, const uint8_t *buffer, size_t size gb->rom_size++; } - if (gb->rom_size == 0) { + if (gb->rom_size < 0x8000) { gb->rom_size = 0x8000; }

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