[MESS] fixed atom cart loading and added fatalerror when tag could not be found - cart doesn't seem to do anything though (nw)

This commit is contained in:
Oliver Stöneberg 2012-12-30 16:16:31 +00:00
parent 46f3271b45
commit 9641e9a3c5

View File

@ -678,7 +678,7 @@ struct atom_cart_range
static const struct atom_cart_range atom_cart_table[] =
{
{ "cart", 0x0000, "a000" },
{ ":cart", 0x0000, "a000" },
{ "a0", 0x0000, "a000" },
{ "a1", 0x1000, "a000" },
{ "a2", 0x2000, "a000" },
@ -718,6 +718,9 @@ static DEVICE_IMAGE_LOAD( atom_cart )
this_cart = atom_cart;
if( !this_cart->tag )
fatalerror("tag '%s' could not be found\n", image.device().tag());
if (image.software_entry() == NULL)
{
size = image.length();