diff options
author | 2016-01-11 17:15:09 +0100 | |
---|---|---|
committer | 2016-01-11 17:15:09 +0100 | |
commit | f21c96ce8a75b92f9e26af8c8d5622b1fe74819b (patch) | |
tree | dcd035995a6a41b11a5fe921c5358140d6a3f365 /src/emu/ui/ui.cpp | |
parent | f0dc809ab860ad1d62c53d5163a6da3f41deb631 (diff) |
modernize rom_load_manager (nw)
Diffstat (limited to 'src/emu/ui/ui.cpp')
-rw-r--r-- | src/emu/ui/ui.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/emu/ui/ui.cpp b/src/emu/ui/ui.cpp index bf9cbadf31d..0048936ea20 100644 --- a/src/emu/ui/ui.cpp +++ b/src/emu/ui/ui.cpp @@ -1024,11 +1024,11 @@ std::string &ui_manager::warnings_string(std::string &str) str.clear(); // if no warnings, nothing to return - if (rom_load_warnings(machine()) == 0 && rom_load_knownbad(machine()) == 0 && !(machine().system().flags & WARNING_FLAGS) && software_load_warnings_message(machine()).length() == 0) + if (machine().rom_load().warnings() == 0 && machine().rom_load().knownbad() == 0 && !(machine().system().flags & WARNING_FLAGS) && machine().rom_load().software_load_warnings_message().length() == 0) return str; // add a warning if any ROMs were loaded with warnings - if (rom_load_warnings(machine()) > 0) + if (machine().rom_load().warnings() > 0) { str.append("One or more ROMs/CHDs for this "); str.append(emulator_info::get_gamenoun()); @@ -1039,20 +1039,20 @@ std::string &ui_manager::warnings_string(std::string &str) str.append("\n"); } - if (software_load_warnings_message(machine()).length()>0) { - str.append(software_load_warnings_message(machine())); + if (machine().rom_load().software_load_warnings_message().length()>0) { + str.append(machine().rom_load().software_load_warnings_message()); if (machine().system().flags & WARNING_FLAGS) str.append("\n"); } // if we have at least one warning flag, print the general header - if ((machine().system().flags & WARNING_FLAGS) || rom_load_knownbad(machine()) > 0) + if ((machine().system().flags & WARNING_FLAGS) || machine().rom_load().knownbad() > 0) { str.append("There are known problems with this "); str.append(emulator_info::get_gamenoun()); str.append("\n\n"); // add a warning if any ROMs are flagged BAD_DUMP/NO_DUMP - if (rom_load_knownbad(machine()) > 0) { + if (machine().rom_load().knownbad() > 0) { str.append("One or more ROMs/CHDs for this "); str.append(emulator_info::get_gamenoun()); str.append(" have not been correctly dumped.\n"); |