summaryrefslogtreecommitdiffstats
path: root/src/frontend/mame/mame.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/frontend/mame/mame.cpp')
-rw-r--r--src/frontend/mame/mame.cpp9
1 files changed, 8 insertions, 1 deletions
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();