summaryrefslogtreecommitdiffstats
path: root/src/frontend/mame/luaengine.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/frontend/mame/luaengine.cpp')
-rw-r--r--src/frontend/mame/luaengine.cpp5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/frontend/mame/luaengine.cpp b/src/frontend/mame/luaengine.cpp
index 71d937dff95..274125b7775 100644
--- a/src/frontend/mame/luaengine.cpp
+++ b/src/frontend/mame/luaengine.cpp
@@ -787,10 +787,7 @@ void lua_engine::initialize()
* thread.yield - check if thread is yielded
*/
- emu.new_usertype<context>("thread", sol::call_constructor, sol::initializers([](context &ctx) {
- ctx.busy = false;
- ctx.yield = false;
- }),
+ emu.new_usertype<context>("thread", sol::call_constructor, sol::constructors<sol::types<>>(),
"start", [this](context &ctx, const char *scr) {
std::string script(scr);
if(ctx.busy)