diff options
Diffstat (limited to 'src/emu/mame.cpp')
-rw-r--r-- | src/emu/mame.cpp | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/src/emu/mame.cpp b/src/emu/mame.cpp index f17c04e3b68..813455e0b8d 100644 --- a/src/emu/mame.cpp +++ b/src/emu/mame.cpp @@ -151,6 +151,20 @@ void machine_manager::update_machine() m_lua->set_machine(m_machine); } + +void machine_manager::start_luaengine() +{ + m_lua->initialize(); + { + emu_file file(options().plugins_path(), OPEN_FLAG_READ); + file_error filerr = file.open("boot.lua"); + if (filerr == FILERR_NONE) + { + m_lua->load_script(file.fullpath()); + } + } +} + /*------------------------------------------------- execute - run the core emulation -------------------------------------------------*/ @@ -166,7 +180,6 @@ int machine_manager::execute() bool exit_pending = false; int error = MAMERR_NONE; - m_lua->initialize(); if (m_options.console()) { m_lua->start_console(); } |