diff options
Diffstat (limited to 'src/emu/mame.cpp')
-rw-r--r-- | src/emu/mame.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/emu/mame.cpp b/src/emu/mame.cpp index f17c04e3b68..55fc78928f8 100644 --- a/src/emu/mame.cpp +++ b/src/emu/mame.cpp @@ -167,6 +167,15 @@ int machine_manager::execute() int error = MAMERR_NONE; 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()); + } + } + if (m_options.console()) { m_lua->start_console(); } |