From 7b85e797d846ef754898089776b77ea47a0bbf69 Mon Sep 17 00:00:00 2001 From: zeromus Date: Sat, 22 Nov 2014 01:44:51 +0000 Subject: [PATCH] fix linux compiling bug from e3070 --- trunk/src/lua-engine.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/trunk/src/lua-engine.cpp b/trunk/src/lua-engine.cpp index 0e6a36b4..584baba5 100644 --- a/trunk/src/lua-engine.cpp +++ b/trunk/src/lua-engine.cpp @@ -274,9 +274,14 @@ static void FCEU_LuaOnStop() gui_used = GUI_CLEAR; //if (wasPaused && !FCEUI_EmulationPaused()) // FCEUI_ToggleEmulationPause(); + + //zero 21-nov-2014 - this variable doesnt exist outside windows so it cant have this feature + #ifdef _MSC_VER if (fps_scale != 256) //thanks, we already know it's on normal speed FCEUD_SetEmulationSpeed(EMUSPEED_NORMAL); //TODO: Ideally lua returns the speed to the speed the user set before running the script //rather than returning it to normal, and turbo off. Perhaps some flags and a FCEUD_GetEmulationSpeed function + #endif + turbo = false; //FCEUD_TurboOff(); #ifdef WIN32