From befe889303640e24a18daad3529f4c2a83fbc20b Mon Sep 17 00:00:00 2001 From: gocha Date: Tue, 7 Aug 2012 22:09:42 +0900 Subject: [PATCH] Lua: fix emu.registerafter timing, emu.atframeboundary must return true --- cpuexec.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cpuexec.cpp b/cpuexec.cpp index 831cac90..2fe420a7 100644 --- a/cpuexec.cpp +++ b/cpuexec.cpp @@ -336,11 +336,11 @@ static inline void EndS9xMainLoop (void) if(!pad_read) IPPU.PadIgnoredFrames++; + IPPU.InMainLoop = FALSE; + #ifdef HAVE_LUA CallRegisteredLuaFunctions(LUACALL_AFTEREMULATION); #endif - - IPPU.InMainLoop = FALSE; } static inline void S9xReschedule (void)