From 1cdce11726550a4af3bc4dd2e72b789a4d9606c5 Mon Sep 17 00:00:00 2001 From: AJR Date: Sun, 16 Feb 2020 18:03:25 -0500 Subject: [PATCH] luaengine: Back out part of unrelated WIP I didn't mean to commit (nw) --- src/frontend/mame/luaengine.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/frontend/mame/luaengine.cpp b/src/frontend/mame/luaengine.cpp index 7530c18ac2c..e2b55a25b13 100644 --- a/src/frontend/mame/luaengine.cpp +++ b/src/frontend/mame/luaengine.cpp @@ -1535,7 +1535,7 @@ void lua_engine::initialize() dev.single_step(steps); }); device_debug_type.set("go", &device_debug::go); - device_debug_type.set("bpset", [](device_debug &dev, offs_t addr) { return dev.breakpoint_set(addr); }); + device_debug_type.set("bpset", [](device_debug &dev, offs_t addr, const char *cond, const char *act) { return dev.breakpoint_set(addr, cond, act); }); device_debug_type.set("bpclr", &device_debug::breakpoint_clear); device_debug_type.set("bplist", [this](device_debug &dev) { sol::table table = sol().create_table(); @@ -1550,13 +1550,13 @@ void lua_engine::initialize() } return table; }); - device_debug_type.set("wpset", [](device_debug &dev, addr_space &sp, const std::string &type, offs_t addr, offs_t len) { + device_debug_type.set("wpset", [](device_debug &dev, addr_space &sp, const std::string &type, offs_t addr, offs_t len, const char *cond, const char *act) { read_or_write wptype = read_or_write::READ; if(type == "w") wptype = read_or_write::WRITE; else if((type == "rw") || (type == "wr")) wptype = read_or_write::READWRITE; - return dev.watchpoint_set(sp.space, wptype, addr, len); + return dev.watchpoint_set(sp.space, wptype, addr, len, cond, act); }); device_debug_type.set("wpclr", &device_debug::watchpoint_clear); device_debug_type.set("wplist", [this](device_debug &dev, addr_space &sp) {