From 933b6228862a871006052ab32bec77fc5515fc46 Mon Sep 17 00:00:00 2001 From: Lior Halphon Date: Tue, 19 May 2020 01:24:02 +0300 Subject: [PATCH] Allow more GameShark cheats --- Core/cheats.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/Core/cheats.c b/Core/cheats.c index 0525816f..14875e01 100644 --- a/Core/cheats.c +++ b/Core/cheats.c @@ -133,9 +133,6 @@ bool GB_import_cheat(GB_gameboy_t *gb, const char *cheat, const char *descriptio uint8_t value; uint16_t address; if (sscanf(cheat, "%02hhx%02hhx%04hx%c", &bank, &value, &address, &dummy) == 3) { - if (address > 0x7FFF) { - return false; - } if (bank >= 0x80) { bank &= 0xF; } @@ -144,7 +141,7 @@ bool GB_import_cheat(GB_gameboy_t *gb, const char *cheat, const char *descriptio } } - /* GameGnie */ + /* GameGenie */ { char stripped_cheat[10] = {0,}; for (unsigned i = 0; i < 9 && *cheat; i++) {