From 7db8f4fcd6c2a28444366027969d541f917db2b4 Mon Sep 17 00:00:00 2001 From: rofl0r Date: Tue, 26 Oct 2021 16:39:25 +0000 Subject: [PATCH] sdl: use emu_halt before loading savestates, just like win32 --- desmume/src/frontend/posix/shared/ctrlssdl.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/desmume/src/frontend/posix/shared/ctrlssdl.cpp b/desmume/src/frontend/posix/shared/ctrlssdl.cpp index 2fdfd24c2..e8d0b7154 100644 --- a/desmume/src/frontend/posix/shared/ctrlssdl.cpp +++ b/desmume/src/frontend/posix/shared/ctrlssdl.cpp @@ -565,6 +565,7 @@ process_ctrls_event( SDL_Event& event, case SDLK_F10: int prevexec; prevexec = execute; + emu_halt(EMUHALT_REASON_USER_REQUESTED_HALT, NDSErrorTag_None); execute = FALSE; SPU_Pause(1); if(!shift_pressed){