summaryrefslogtreecommitdiffstatshomepage
path: root/src/frontend
diff options
context:
space:
mode:
authorGravatarGravatar npwoods <npwoods@mess.org>2019-08-28 19:15:42 -0400
committerGravatarGravatar npwoods <npwoods@mess.org>2019-08-28 19:15:42 -0400
commit4732ef1a5904dcd25728b06e230075eb2465d923 (patch)
treea61e61e091918ebed5acad19a56925f48ec3242d /src/frontend
parentf10b2f45adcec61978db007f965b7c42ae8e0975 (diff)
Exposing running_machine::exit_pending() and
running_machine::hard_reset_pending() to LUA
Diffstat (limited to 'src/frontend')
-rw-r--r--src/frontend/mame/luaengine.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/frontend/mame/luaengine.cpp b/src/frontend/mame/luaengine.cpp
index df730b7019f..5416598b5d9 100644
--- a/src/frontend/mame/luaengine.cpp
+++ b/src/frontend/mame/luaengine.cpp
@@ -2,7 +2,7 @@
// copyright-holders:Miodrag Milanovic,Luca Bruno
/***************************************************************************
- luaengine.c
+ luaengine.cpp
Controls execution of the core MAME system.
@@ -1247,6 +1247,8 @@ void lua_engine::initialize()
*
* machine.paused - get paused state
* machine.samplerate - get audio sample rate
+ * machine.exit_pending
+ * machine.hard_reset_pending
*
* machine.devices[] - get device table (k=tag, v=device_t)
* machine.screens[] - get screens table (k=tag, v=screen_device)
@@ -1277,6 +1279,8 @@ void lua_engine::initialize()
},
"paused", sol::property(&running_machine::paused),
"samplerate", sol::property(&running_machine::sample_rate),
+ "exit_pending", sol::property(&running_machine::exit_pending),
+ "hard_reset_pending", sol::property(&running_machine::hard_reset_pending),
"devices", sol::property([this](running_machine &m) {
std::function<void(device_t &, sol::table)> tree;
sol::table table = sol().create_table();