From c2df39ba1d05e073a3b76b64b07417fd074936f9 Mon Sep 17 00:00:00 2001 From: Olivier Galibert Date: Fri, 30 Jun 2017 13:49:01 +0200 Subject: mameopts: Don't lose the system inipath when looking for hashpath [O. Galibert] --- src/frontend/mame/mameopts.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/frontend/mame/mameopts.cpp b/src/frontend/mame/mameopts.cpp index fc73c36a9f7..029c5c601a6 100644 --- a/src/frontend/mame/mameopts.cpp +++ b/src/frontend/mame/mameopts.cpp @@ -160,6 +160,10 @@ void mame_options::populate_hashpath_from_args_and_inis(emu_options &options, co // parse the command line emu_options temp_options(emu_options::option_support::GENERAL_AND_SYSTEM); + + // pick up whatever changes the osd did to the default inipath + temp_options.set_default_value(OPTION_INIPATH, options.ini_path()); + try { temp_options.parse_command_line(args, OPTION_PRIORITY_CMDLINE, true); -- cgit v1.2.3