Update lua-engine.cpp

Fixed the switchDisk and insertOrEject disk functions, to properly call the functions in input.cpp
This commit is contained in:
Artur Bekker 2022-11-25 17:10:26 -05:00 committed by GitHub
parent f85a02f34b
commit 542321dc3f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 2 deletions

View File

@ -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.