all repos — mgba @ 8c02615593484913353dd4806189357710945384

mGBA Game Boy Advance Emulator

Name slots more predictably
Jeffrey Pfau jeffrey@endrift.com
Wed, 15 Oct 2014 23:26:46 -0700
commit

8c02615593484913353dd4806189357710945384

parent

69d041d3737dafd0d3e6d637c7f234c1ea914ec9

1 files changed, 2 insertions(+), 4 deletions(-)

jump to
M src/platform/sdl/sdl-events.csrc/platform/sdl/sdl-events.c

@@ -171,9 +171,8 @@ case SDLK_F6:

case SDLK_F7: case SDLK_F8: case SDLK_F9: - case SDLK_F10: GBAThreadInterrupt(context); - GBASaveState(context->gba, context->stateDir, event->keysym.sym - SDLK_F1, true); + GBASaveState(context->gba, context->stateDir, event->keysym.sym - SDLK_F1 + 1, true); GBAThreadContinue(context); break; default:

@@ -190,9 +189,8 @@ case SDLK_F6:

case SDLK_F7: case SDLK_F8: case SDLK_F9: - case SDLK_F10: GBAThreadInterrupt(context); - GBALoadState(context->gba, context->stateDir, event->keysym.sym - SDLK_F1); + GBALoadState(context->gba, context->stateDir, event->keysym.sym - SDLK_F1 + 1); GBAThreadContinue(context); break; default: