From 55e95d8ea78e4b103680219da3a40a8ef9f19d76 Mon Sep 17 00:00:00 2001 From: Nathan Woods Date: Sun, 14 May 2017 10:02:37 -0400 Subject: [PATCH] Adding hack to fish hashpath option out of INI files prior to softlist evaluation eientei95 reported an error where the hashpath specified in INI files was not being honored in softlist evaluation. This is a change to preprocess INI files for the sole purpose of finding the hashpath prior to evaluating softlists. --- src/frontend/mame/mameopts.cpp | 26 ++++++++++++++++++++++++++ src/frontend/mame/mameopts.h | 3 +++ 2 files changed, 29 insertions(+) diff --git a/src/frontend/mame/mameopts.cpp b/src/frontend/mame/mameopts.cpp index 05981854cef..84d1f6a313f 100644 --- a/src/frontend/mame/mameopts.cpp +++ b/src/frontend/mame/mameopts.cpp @@ -321,6 +321,11 @@ bool mame_options::parse_command_line(emu_options &options, std::vectorvalue(), entry->priority(), temp_error_string); +} diff --git a/src/frontend/mame/mameopts.h b/src/frontend/mame/mameopts.h index 683fd88693d..f9ee3325e52 100644 --- a/src/frontend/mame/mameopts.h +++ b/src/frontend/mame/mameopts.h @@ -80,6 +80,9 @@ private: // softlist handling static std::map evaluate_initial_softlist_options(emu_options &options); + // special function to fish hashpath out of INI files - needed for softlist processing + static void populate_hashpath_from_ini_files(emu_options &options); + // represents an "invalid" value (an empty string is valid so we can't use that; what I // really want to return is std::optional but C++17 isn't here yet) static std::string value_specifier_invalid_value() { return std::string("\x01\x02\x03"); }