SameBoy | Accurate GB/GBC emulator |
| download: https://git.y1.nz/archives/sameboy.tar.gz | |
| README | Files | Log | Refs | LICENSE |
commit 152e2424856ac2a440ef16587eb4dcf2e347f716 parent c4e61619593fb409b9d092afb73ec22841481937 Author: Lior Halphon <LIJI32@gmail.com> Date: Mon, 26 May 2025 00:51:16 +0300 Fixed incorrect processing of GameShark codes Diffstat:
| M | Core/cheats.c | 5 | +---- |
1 file changed, 1 insertion(+), 4 deletions(-)
diff --git a/Core/cheats.c b/Core/cheats.c @@ -159,11 +159,8 @@ const GB_cheat_t *GB_import_cheat(GB_gameboy_t *gb, const char *cheat, const cha uint8_t value; uint16_t address; if (sscanf(cheat, "%02hhx%02hhx%04hx%c", &bank, &value, &address, &dummy) == 3) { - if (bank >= 0x80) { - bank &= 0xF; - } address = __builtin_bswap16(address); - return GB_add_cheat(gb, description, address, bank, value, 0, false, enabled); + return GB_add_cheat(gb, description, address, bank == 1? GB_CHEAT_ANY_BANK : (bank & 0xF), value, 0, false, enabled); } }
This webpage is intended to be an accessible preview of this repository. To get a fuller picture, clone it and use the git CLI.