From d6babce9b7fd8af74fba415eb1bc9123a32c3993 Mon Sep 17 00:00:00 2001 From: zeromus Date: Wed, 3 Oct 2018 03:13:48 -0400 Subject: [PATCH] winport - add some kind of hack to exit the emulator better whenever a lua script is running --- desmume/src/frontend/windows/main.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/desmume/src/frontend/windows/main.cpp b/desmume/src/frontend/windows/main.cpp index 1a603b88e..d3842c6af 100755 --- a/desmume/src/frontend/windows/main.cpp +++ b/desmume/src/frontend/windows/main.cpp @@ -1800,6 +1800,8 @@ class WinDriver : public BaseDriver CheckMessages(); + if(finished) ExitProcess(0); //I guess.... fixes hangs when exiting while a lua script is running + if(!romloaded) return ESTEP_DONE;