diff options
author | 2016-02-14 10:58:18 +0100 | |
---|---|---|
committer | 2016-02-14 10:58:18 +0100 | |
commit | ccae0382bb750c1deded19e05b34933a8303465e (patch) | |
tree | 1a2f0ae972163e6c1c76611b464d4257947c003e /src/emu/mame.cpp | |
parent | 2db49088141b6238e92aecc4c073076a02c73065 (diff) |
Added plugins and boot.lua as startup script [Miodrag Milanovic]
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(); } |