lua: add emu_debuggerloop

This commit is contained in:
zeromus 2017-05-15 05:09:13 +00:00
parent 96997ddf95
commit 6021ba627d
1 changed files with 9 additions and 0 deletions

View File

@ -399,6 +399,14 @@ static int emu_poweron(lua_State *L) {
return 0; return 0;
} }
static int emu_debuggerloop(lua_State *L) {
#ifdef WIN32
extern void win_debuggerLoop();
win_debuggerLoop();
#endif
return 0;
}
// emu.softreset() // emu.softreset()
// //
// Executes a power cycle // Executes a power cycle
@ -5538,6 +5546,7 @@ static int emu_exec_time(lua_State *L) { return 0; }
static const struct luaL_reg emulib [] = { static const struct luaL_reg emulib [] = {
{"poweron", emu_poweron}, {"poweron", emu_poweron},
{"debuggerloop", emu_debuggerloop},
{"softreset", emu_softreset}, {"softreset", emu_softreset},
{"speedmode", emu_speedmode}, {"speedmode", emu_speedmode},
{"frameadvance", emu_frameadvance}, {"frameadvance", emu_frameadvance},