Lua - fix so that setting speed.mode to normal turns off turbo.

This commit is contained in:
adelikat 2010-06-12 17:12:46 +00:00
parent 1af53df1df
commit 38c4c3d228
1 changed files with 3 additions and 0 deletions

View File

@ -313,7 +313,10 @@ static int emu_speedmode(lua_State *L) {
//printf("new speed mode: %d\n", speedmode); //printf("new speed mode: %d\n", speedmode);
if (speedmode == SPEED_NORMAL) if (speedmode == SPEED_NORMAL)
{
FCEUD_SetEmulationSpeed(EMUSPEED_NORMAL); FCEUD_SetEmulationSpeed(EMUSPEED_NORMAL);
FCEUD_TurboOff();
}
else if (speedmode == SPEED_TURBO) //adelikat: Making turbo actually use turbo. else if (speedmode == SPEED_TURBO) //adelikat: Making turbo actually use turbo.
FCEUD_TurboOn(); //Turbo and max speed are two different results. Turbo employs frame skipping and sound bypassing if mute turbo option is enabled. FCEUD_TurboOn(); //Turbo and max speed are two different results. Turbo employs frame skipping and sound bypassing if mute turbo option is enabled.
//This makes it faster but with frame skipping. Therefore, maximum is still a useful feature, in case the user is recording an avi or making screenshots (or something else that needs all frames) //This makes it faster but with frame skipping. Therefore, maximum is still a useful feature, in case the user is recording an avi or making screenshots (or something else that needs all frames)