mirror of
https://github.com/holub/mame
synced 2025-05-15 10:28:16 +03:00
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.
This commit is contained in:
parent
082e6d1725
commit
5fe69ade7f
@ -586,9 +586,7 @@ DEVICE_IMAGE_LOAD_MEMBER( mtech_state, megatech_cart )
|
|||||||
if (image.software_entry() == NULL)
|
if (image.software_entry() == NULL)
|
||||||
return IMAGE_INIT_FAIL;
|
return IMAGE_INIT_FAIL;
|
||||||
|
|
||||||
//printf("load list\n");
|
UINT8 *ROM = image.device().machine().root_device().memregion(this_cart->region)->base();
|
||||||
UINT8 *ROM = image.device().memregion(this_cart->region)->base();
|
|
||||||
//printf("load list2\n");
|
|
||||||
UINT32 length = image.get_software_region_length("rom");
|
UINT32 length = image.get_software_region_length("rom");
|
||||||
memcpy(ROM, image.get_software_region("rom"), length);
|
memcpy(ROM, image.get_software_region("rom"), length);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user