From 10930203dad91203ff899f70eb5dda2bb541d4c3 Mon Sep 17 00:00:00 2001 From: adelikat Date: Tue, 4 Nov 2008 01:53:52 +0000 Subject: [PATCH] Windows - If the game is paused, savestate will not unpause automatically --- desmume/src/windows/main.cpp | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/desmume/src/windows/main.cpp b/desmume/src/windows/main.cpp index c60f638bd..cdb5cf7ff 100644 --- a/desmume/src/windows/main.cpp +++ b/desmume/src/windows/main.cpp @@ -829,9 +829,14 @@ void NDS_UnPause() void StateSaveSlot(int num) { - NDS_Pause(); - savestate_slot(num); - NDS_UnPause(); + if (!paused) + { + NDS_Pause(); + savestate_slot(num); + NDS_UnPause(); + } + else + savestate_slot(num); } void StateLoadSlot(int num)