mirror of
https://github.com/holub/mame
synced 2025-07-04 01:18:59 +03:00
[MESS] use proper DEVICE_IMAGE_LOAD errorhandling for atom (nw)
This commit is contained in:
parent
9641e9a3c5
commit
9f068fc5b2
@ -719,7 +719,12 @@ static DEVICE_IMAGE_LOAD( atom_cart )
|
|||||||
this_cart = atom_cart;
|
this_cart = atom_cart;
|
||||||
|
|
||||||
if( !this_cart->tag )
|
if( !this_cart->tag )
|
||||||
fatalerror("tag '%s' could not be found\n", image.device().tag());
|
{
|
||||||
|
astring errmsg;
|
||||||
|
errmsg.printf("Tag '%s' could not be found", image.device().tag());
|
||||||
|
image.seterror(IMAGE_ERROR_UNSPECIFIED, errmsg.cstr());
|
||||||
|
return IMAGE_INIT_FAIL;
|
||||||
|
}
|
||||||
|
|
||||||
if (image.software_entry() == NULL)
|
if (image.software_entry() == NULL)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user