trunk/src/emu/ui/imgcntrl.c
| r242972 | r242973 | |
| 16 | 16 | #include "ui/filesel.h" |
| 17 | 17 | #include "ui/swlist.h" |
| 18 | 18 | #include "zippath.h" |
| 19 | #include "audit.h" |
| 19 | 20 | |
| 20 | 21 | |
| 21 | 22 | /*************************************************************************** |
| r242972 | r242973 | |
| 132 | 133 | void ui_menu_control_device_image::load_software_part() |
| 133 | 134 | { |
| 134 | 135 | astring temp_name(sld->list_name(), ":", swi->shortname(), ":", swp->name()); |
| 135 | | hook_load(temp_name, true); |
| 136 | |
| 137 | driver_enumerator drivlist(machine().options(), machine().options().system_name()); |
| 138 | media_auditor auditor(drivlist); |
| 139 | media_auditor::summary summary = auditor.audit_software(sld->list_name(), (software_info *)swi, AUDIT_VALIDATE_FAST); |
| 140 | // if everything looks good, load software |
| 141 | if (summary == media_auditor::CORRECT || summary == media_auditor::BEST_AVAILABLE || summary == media_auditor::NONE_NEEDED) |
| 142 | hook_load(temp_name, true); |
| 143 | else |
| 144 | { |
| 145 | popmessage("The selected game is missing one or more required ROM or CHD images. Please select a different game."); |
| 146 | state = SELECT_SOFTLIST; |
| 147 | } |
| 136 | 148 | } |
| 137 | 149 | |
| 138 | 150 | |