Registered Lua callbacks via gui.register() are now only called at frame boundaries.

This commit is contained in:
aquanull@gmail.com 2018-12-24 12:01:32 +08:00
parent b6df31d0f3
commit 08c602a3f2
2 changed files with 2 additions and 3 deletions

View File

@ -731,6 +731,8 @@ void FCEUI_Emulate(uint8 **pXBuf, int32 **SoundBuf, int32 *SoundBufSize, int ski
CallRegisteredLuaFunctions(LUACALL_AFTEREMULATION); CallRegisteredLuaFunctions(LUACALL_AFTEREMULATION);
#endif #endif
FCEU_PutImage();
#ifdef WIN32 #ifdef WIN32
//These Windows only dialogs need to be updated only once per frame so they are included here //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 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

View File

@ -1862,7 +1862,6 @@ int FCEUPPU_Loop(int skip) {
} else } else
#endif #endif
{ {
FCEU_PutImage();
return(1); return(1);
} }
} }
@ -2429,7 +2428,5 @@ int FCEUX_PPU_Loop(int skip) {
} }
finish: finish:
FCEU_PutImage();
return 0; return 0;
} }