From bfc96abf8fcfe49865f7b6e04a3fd7ce817b233c Mon Sep 17 00:00:00 2001 From: Lior Halphon Date: Fri, 11 May 2018 12:51:15 +0300 Subject: [PATCH] Make save state names consistent across the Cocoa and SDL port --- SDL/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SDL/main.c b/SDL/main.c index 755d054..34c41be 100755 --- a/SDL/main.c +++ b/SDL/main.c @@ -218,7 +218,7 @@ static void handle_events(GB_gameboy_t *gb) /* Save states */ if (event.key.keysym.scancode >= SDL_SCANCODE_1 && event.key.keysym.scancode <= SDL_SCANCODE_0) { if (event.key.keysym.mod & MODIFIER) { - command_parameter = event.key.keysym.scancode - SDL_SCANCODE_1; + command_parameter = (event.key.keysym.scancode - SDL_SCANCODE_1 + 1) % 10; if (event.key.keysym.mod & KMOD_SHIFT) { pending_command = GB_SDL_LOAD_STATE_COMMAND;