From 08c602a3f2c1a92364231ff55e7de497da59b79e Mon Sep 17 00:00:00 2001 From: "aquanull@gmail.com" Date: Mon, 24 Dec 2018 12:01:32 +0800 Subject: [PATCH] Registered Lua callbacks via gui.register() are now only called at frame boundaries. --- src/fceu.cpp | 2 ++ src/ppu.cpp | 3 --- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/src/fceu.cpp b/src/fceu.cpp index 6952964f..659307ea 100644 --- a/src/fceu.cpp +++ b/src/fceu.cpp @@ -731,6 +731,8 @@ void FCEUI_Emulate(uint8 **pXBuf, int32 **SoundBuf, int32 *SoundBufSize, int ski CallRegisteredLuaFunctions(LUACALL_AFTEREMULATION); #endif + FCEU_PutImage(); + #ifdef WIN32 //These Windows only dialogs need to be updated only once per frame so they are included here UpdateCheatList(); // CaH4e3: can't see why, this is only cause problems with selection - adelikat: selection is only a problem when not paused, it shoudl be paused to select, we want to see the values update diff --git a/src/ppu.cpp b/src/ppu.cpp index 7c78b8bc..175cee26 100644 --- a/src/ppu.cpp +++ b/src/ppu.cpp @@ -1862,7 +1862,6 @@ int FCEUPPU_Loop(int skip) { } else #endif { - FCEU_PutImage(); return(1); } } @@ -2429,7 +2428,5 @@ int FCEUX_PPU_Loop(int skip) { } finish: - FCEU_PutImage(); - return 0; }