lua: make emu.speedmode nothrottle and maximum set to 100% frameskip, as originally intended (fixes #34)

This commit is contained in:
zeromus 2019-01-27 21:32:22 -05:00
parent adc9efec56
commit f8d5a91363
2 changed files with 4 additions and 1 deletions

View File

@ -901,6 +901,9 @@ doloopy:
} }
else skippy = 0; else skippy = 0;
if(FCEU_LuaFrameskip())
skippy = true;
FCEUI_Emulate(&gfx, &sound, &ssize, skippy); //emulate a single frame FCEUI_Emulate(&gfx, &sound, &ssize, skippy); //emulate a single frame
FCEUD_Update(gfx, sound, ssize); //update displays and debug tools FCEUD_Update(gfx, sound, ssize); //update displays and debug tools

View File

@ -327,7 +327,7 @@ int FCEU_LuaSpeed() {
* Asks Lua if it wants control whether this frame is skipped. * Asks Lua if it wants control whether this frame is skipped.
* Returns 0 if no, 1 if frame should be skipped, -1 if it should not be. * Returns 0 if no, 1 if frame should be skipped, -1 if it should not be.
*/ */
int FCEU_LuaFrameSkip() { int FCEU_LuaFrameskip() {
if (!L || !luaRunning) if (!L || !luaRunning)
return 0; return 0;