Make save state names consistent across the Cocoa and SDL port

This commit is contained in:
Lior Halphon 2018-05-11 12:51:15 +03:00
parent feaa0d0654
commit bfc96abf8f

View File

@ -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;