Resolved bug MT05443 (nw)

This commit is contained in:
Miodrag Milanovic 2014-02-06 07:47:34 +00:00
parent 81da493743
commit 299a6559b0
2 changed files with 7 additions and 8 deletions

View File

@ -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();

View File

@ -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)