From 4732ef1a5904dcd25728b06e230075eb2465d923 Mon Sep 17 00:00:00 2001 From: npwoods Date: Wed, 28 Aug 2019 19:15:42 -0400 Subject: Exposing running_machine::exit_pending() and running_machine::hard_reset_pending() to LUA --- src/frontend/mame/luaengine.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src/frontend') 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 tree; sol::table table = sol().create_table(); -- cgit v1.2.3