Previous 199869 Revisions Next

r34461 Sunday 18th January, 2015 at 18:54:07 UTC by Fabio Priuli
ui: improved File Manager so that attempts to launch softlist
entries without having the necessary files don't kill emulation
but simply display a message to the user. [Fabio Priuli]
[src/emu/ui]imgcntrl.c imgcntrl.h

trunk/src/emu/ui/imgcntrl.c
r242972r242973
1616#include "ui/filesel.h"
1717#include "ui/swlist.h"
1818#include "zippath.h"
19#include "audit.h"
1920
2021
2122/***************************************************************************
r242972r242973
132133void ui_menu_control_device_image::load_software_part()
133134{
134135   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   }
136148}
137149
138150
trunk/src/emu/ui/imgcntrl.h
r242972r242973
1414#ifndef __UI_IMGCNTRL_H__
1515#define __UI_IMGCNTRL_H__
1616
17#include "drivenum.h"
18
1719// ======================> ui_menu_control_device_image
1820
1921class ui_menu_control_device_image : public ui_menu {


Previous 199869 Revisions Next


© 1997-2024 The MAME Team