diff --git a/src/frontend/mame/mame.cpp b/src/frontend/mame/mame.cpp index 8e6a0614260..63c765abc24 100644 --- a/src/frontend/mame/mame.cpp +++ b/src/frontend/mame/mame.cpp @@ -155,7 +155,14 @@ void mame_machine_manager::start_luaengine() } if (options().console()) { - m_plugins->set_value("console", "1", OPTION_PRIORITY_CMDLINE); + if (m_plugins->exists(OPTION_CONSOLE)) + { + m_plugins->set_value(OPTION_CONSOLE, "1", OPTION_PRIORITY_CMDLINE); + } + else + { + fatalerror("Console plugin not found.\n"); + } } m_lua->initialize();