From 549df5e6b0591c04a1f442586cf4f3786aafe991 Mon Sep 17 00:00:00 2001 From: Nathan Woods Date: Thu, 11 Aug 2016 07:40:20 -0400 Subject: Fixed an issue that caused softlist device descriptions to be blank This also fixes a likely undiscovered issue where the filename in softlist XML parse error messages was also blank --- src/emu/softlist_dev.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/emu/softlist_dev.cpp') diff --git a/src/emu/softlist_dev.cpp b/src/emu/softlist_dev.cpp index 013f90c779c..ce6d96a24d2 100644 --- a/src/emu/softlist_dev.cpp +++ b/src/emu/softlist_dev.cpp @@ -229,9 +229,9 @@ void software_list_device::display_matches(const machine_config &config, const c { // different output depending on original system or compatible if (swlistdev.list_type() == SOFTWARE_LIST_ORIGINAL_SYSTEM) - osd_printf_error("* Software list \"%s\" (%s) matches: \n", swlistdev.list_name().c_str(), swlistdev.description()); + osd_printf_error("* Software list \"%s\" (%s) matches: \n", swlistdev.list_name().c_str(), swlistdev.description().c_str()); else - osd_printf_error("* Compatible software list \"%s\" (%s) matches: \n", swlistdev.list_name().c_str(), swlistdev.description()); + osd_printf_error("* Compatible software list \"%s\" (%s) matches: \n", swlistdev.list_name().c_str(), swlistdev.description().c_str()); // print them out for (auto &match : matches) @@ -297,7 +297,7 @@ void software_list_device::parse() { // parse if no error std::ostringstream errs; - softlist_parser parser(m_file, m_description, m_infolist, errs); + softlist_parser parser(m_file, m_file.filename(), m_description, m_infolist, errs); m_file.close(); m_errors = errs.str(); } -- cgit v1.2.3-70-g09d2