From 0ffd3b14277348fadfbb3d72eb56fd5cddb5f3dc Mon Sep 17 00:00:00 2001 From: Miodrag Milanovic Date: Wed, 30 Nov 2016 14:54:59 +0100 Subject: [PATCH] make -console start console lua plugin (nw) --- src/frontend/mame/mame.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/frontend/mame/mame.cpp b/src/frontend/mame/mame.cpp index b0913489569..197194ceb3b 100644 --- a/src/frontend/mame/mame.cpp +++ b/src/frontend/mame/mame.cpp @@ -151,6 +151,11 @@ void mame_machine_manager::start_luaengine() } } } + if (options().console()) { + std::string error_string; + m_plugins->set_value("console", "1", OPTION_PRIORITY_CMDLINE, error_string); + } + m_lua->initialize(); {