From 982ed7689dab86ed4bcb95b6668df0885d4f665e Mon Sep 17 00:00:00 2001 From: Matthew Budd Date: Mon, 20 Jul 2020 19:36:22 -0400 Subject: [PATCH] Added Lua window hooks to old sdl port that are now needed by core library. These functions do not do much on the old port and really only exist to resolve linker issues. --- src/drivers/sdl/sdl.cpp | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/src/drivers/sdl/sdl.cpp b/src/drivers/sdl/sdl.cpp index dd3d1c83..9eaab246 100644 --- a/src/drivers/sdl/sdl.cpp +++ b/src/drivers/sdl/sdl.cpp @@ -77,6 +77,8 @@ int pal_emulation; int dendy; bool swapDuty; +static bool luaScriptRunning = false; + // -Video Modes Tag- : See --special static const char *DriverUsage= "Option Value Description\n" @@ -1002,6 +1004,27 @@ void FCEUD_PrintError(const char *errormsg) fprintf(stderr, "%s\n", errormsg); } +//---------------------------------------------------- +void WinLuaOnStart(intptr_t hDlgAsInt) +{ + luaScriptRunning = true; + + //printf("Lua Script Running: %i \n", luaScriptRunning ); +} +//---------------------------------------------------- +void WinLuaOnStop(intptr_t hDlgAsInt) +{ + luaScriptRunning = false; + + //printf("Lua Script Running: %i \n", luaScriptRunning ); +} +//---------------------------------------------------- +void PrintToWindowConsole(intptr_t hDlgAsInt, const char* str) +{ + printf("Lua Output: %s\n", str ); +} +//---------------------------------------------------- + // dummy functions