From 542321dc3f0a33f11ed4106ebb2d28b48b2caad9 Mon Sep 17 00:00:00 2001 From: Artur Bekker Date: Fri, 25 Nov 2022 17:10:26 -0500 Subject: [PATCH] Update lua-engine.cpp Fixed the switchDisk and insertOrEject disk functions, to properly call the functions in input.cpp --- src/lua-engine.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/lua-engine.cpp b/src/lua-engine.cpp index 4a0f3425..61c21fce 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) { - extern void FCEUI_FDSSelect(); + FCEUI_FDSSelect(); return 0; } @@ -641,10 +641,11 @@ 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) { - extern void FCEUI_FDSInsert(); + FCEUI_FDSInsert(); return 0; } + // emu.loadrom(string filename) // // Loads the rom from the directory relative to the lua script or from the absolute path.