From f85a02f34bda50ca507310de44b32bc9e62aeb68 Mon Sep 17 00:00:00 2001 From: Artur Bekker Date: Fri, 25 Nov 2022 15:55:56 -0500 Subject: [PATCH] Update lua-engine.cpp Static void functions not allowed, changed to extern void --- src/lua-engine.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lua-engine.cpp b/src/lua-engine.cpp index 415cf442..4a0f3425 100644 --- a/src/lua-engine.cpp +++ b/src/lua-engine.cpp @@ -632,7 +632,7 @@ extern void ReloadRom(void); // Switches the side of the disk that is currently ejected static int emu_switchDisk(lua_State* L) { - static void FCEUI_FDSSelect(); + extern void FCEUI_FDSSelect(); return 0; } @@ -641,7 +641,7 @@ static int emu_switchDisk(lua_State* L) // If the disk is currently inserted into the FDS, eject it static int emu_insertOrEjectDisk(lua_State* L) { - static void FCEUI_FDSInsert(); + extern void FCEUI_FDSInsert(); return 0; }