lua: make emu.speedmode nothrottle and maximum set to 100% frameskip, as originally intended (fixes #34)
This commit is contained in:
parent
adc9efec56
commit
f8d5a91363
|
@ -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
|
||||||
|
|
||||||
|
|
|
@ -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;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue