mirror of https://github.com/mgba-emu/mgba.git
SDL: Load/store RTC state
This commit is contained in:
parent
559ac947d0
commit
d571d8921f
|
@ -488,7 +488,7 @@ static void _mSDLHandleKeypress(struct mCoreThread* context, struct mSDLPlayer*
|
|||
case SDLK_F8:
|
||||
case SDLK_F9:
|
||||
mCoreThreadInterrupt(context);
|
||||
mCoreSaveState(context->core, event->keysym.sym - SDLK_F1 + 1, SAVESTATE_SAVEDATA | SAVESTATE_SCREENSHOT);
|
||||
mCoreSaveState(context->core, event->keysym.sym - SDLK_F1 + 1, SAVESTATE_SAVEDATA | SAVESTATE_SCREENSHOT | SAVESTATE_RTC);
|
||||
mCoreThreadContinue(context);
|
||||
break;
|
||||
default:
|
||||
|
@ -506,7 +506,7 @@ static void _mSDLHandleKeypress(struct mCoreThread* context, struct mSDLPlayer*
|
|||
case SDLK_F8:
|
||||
case SDLK_F9:
|
||||
mCoreThreadInterrupt(context);
|
||||
mCoreLoadState(context->core, event->keysym.sym - SDLK_F1 + 1, SAVESTATE_SCREENSHOT);
|
||||
mCoreLoadState(context->core, event->keysym.sym - SDLK_F1 + 1, SAVESTATE_SCREENSHOT | SAVESTATE_RTC);
|
||||
mCoreThreadContinue(context);
|
||||
break;
|
||||
default:
|
||||
|
|
Loading…
Reference in New Issue