Previous 199869 Revisions Next

r21697 Friday 8th March, 2013 at 09:27:46 UTC by Fabio Priuli
fixed megatech loading in cartslots (image device does not seem to have access to the memory regions, so we have to pass through root_device). nw.
[src/mame/drivers]megatech.c

trunk/src/mame/drivers/megatech.c
r21696r21697
586586   if (image.software_entry() == NULL)
587587      return IMAGE_INIT_FAIL;
588588
589   //printf("load list\n");
590   UINT8 *ROM = image.device().memregion(this_cart->region)->base();
591   //printf("load list2\n");
589   UINT8 *ROM = image.device().machine().root_device().memregion(this_cart->region)->base();
592590   UINT32 length = image.get_software_region_length("rom");
593591   memcpy(ROM, image.get_software_region("rom"), length);
594592

Previous 199869 Revisions Next


© 1997-2024 The MAME Team