mirror of
https://github.com/libretro/FBNeo.git
synced 2024-11-23 08:59:39 +00:00
snes cheat, oops
This commit is contained in:
parent
714b7f17e9
commit
3bc7b72539
@ -719,6 +719,7 @@ static void snes_add_cheat(char *code)
|
|||||||
|
|
||||||
if (!gg_decode(code, address, value) && cheats_active < (cheat_MAX-1)) {
|
if (!gg_decode(code, address, value) && cheats_active < (cheat_MAX-1)) {
|
||||||
strncpy(cheats[cheats_active].code, code, 9);
|
strncpy(cheats[cheats_active].code, code, 9);
|
||||||
|
cheats[cheats_active].code[9] = '\0';
|
||||||
cheats[cheats_active].address = address;
|
cheats[cheats_active].address = address;
|
||||||
cheats[cheats_active].value = value;
|
cheats[cheats_active].value = value;
|
||||||
bprintf(0, _T("cheat #%d (%S) added. (%x, %x)\n"), cheats_active, cheats[cheats_active].code, address, value);
|
bprintf(0, _T("cheat #%d (%S) added. (%x, %x)\n"), cheats_active, cheats[cheats_active].code, address, value);
|
||||||
|
Loading…
Reference in New Issue
Block a user