From 299a6559b0c78cb7ec9323d59c6e7476c13ac940 Mon Sep 17 00:00:00 2001 From: Miodrag Milanovic Date: Thu, 6 Feb 2014 07:47:34 +0000 Subject: [PATCH] Resolved bug MT05443 (nw) --- src/emu/clifront.c | 7 +++++++ src/emu/mame.c | 8 -------- 2 files changed, 7 insertions(+), 8 deletions(-) diff --git a/src/emu/clifront.c b/src/emu/clifront.c index d81a6a9e25c..ddc60f31fd8 100644 --- a/src/emu/clifront.c +++ b/src/emu/clifront.c @@ -128,6 +128,13 @@ int cli_frontend::execute(int argc, char **argv) // first parse options to be able to get software from it astring option_errors; m_options.parse_command_line(argc, argv, option_errors); + // We need to preprocess the config files once to determine the web server's configuration + // and file locations + if (m_options.read_config()) + { + m_options.revert(OPTION_PRIORITY_INI); + m_options.parse_standard_inis(option_errors); + } if (*(m_options.software_name()) != 0) { const game_driver *system = m_options.system(); diff --git a/src/emu/mame.c b/src/emu/mame.c index afa919965cd..2e00575159d 100644 --- a/src/emu/mame.c +++ b/src/emu/mame.c @@ -148,14 +148,6 @@ int mame_execute(emu_options &options, osd_interface &osd) bool exit_pending = false; int error = MAMERR_NONE; - // We need to preprocess the config files once to determine the web server's configuration - if (options.read_config()) - { - options.revert(OPTION_PRIORITY_INI); - astring errors; - options.parse_standard_inis(errors); - } - web_engine web(options); while (error == MAMERR_NONE && !exit_pending)