git.y1.nz

SameBoy

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

commit bfb1092cbb2a1cd15a0257f093581353c7918855
parent 282140822e5b880447ce8bc3bdd2df2180b37a07
Author: Lior Halphon <LIJI32@gmail.com>
Date:   Tue, 10 Jun 2025 01:19:29 +0300

Fix cheat search crashing on carts without RAM

Diffstat:
MCore/cheat_search.c2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/Core/cheat_search.c b/Core/cheat_search.c @@ -73,7 +73,7 @@ bool GB_cheat_search_filter(GB_gameboy_t *gb, const char *expression, GB_cheat_s } skip:; old_data++; - if (new_data == gb->ram + gb->ram_size - 1) { + if (new_data == gb->ram + gb->ram_size - 1 && gb->mbc_ram_size) { new_data = gb->mbc_ram; } else if (new_data == gb->mbc_ram + gb->mbc_ram_size - 1) {

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