| 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 |
| r21696 | r21697 | |
|---|---|---|
| 586 | 586 | if (image.software_entry() == NULL) |
| 587 | 587 | return IMAGE_INIT_FAIL; |
| 588 | 588 | |
| 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(); | |
| 592 | 590 | UINT32 length = image.get_software_region_length("rom"); |
| 593 | 591 | memcpy(ROM, image.get_software_region("rom"), length); |
| 594 | 592 |
| Previous | 199869 Revisions | Next |