trunk/src/mame/drivers/stv.c
| r21704 | r21705 | |
| 1004 | 1004 | |
| 1005 | 1005 | static const struct stv_cart_region stv_cart_table[] = |
| 1006 | 1006 | { |
| 1007 | | { ":cart1", 0, "game0" }, |
| 1008 | | { ":cart2", 1, "game1" }, |
| 1009 | | { ":cart3", 2, "game2" }, |
| 1010 | | { ":cart4", 3, "game3" }, |
| 1007 | { ":cart1", 0, ":game0" }, |
| 1008 | { ":cart2", 1, ":game1" }, |
| 1009 | { ":cart3", 2, ":game2" }, |
| 1010 | { ":cart4", 3, ":game3" }, |
| 1011 | 1011 | { 0 } |
| 1012 | 1012 | }; |
| 1013 | 1013 | |
| r21704 | r21705 | |
| 1056 | 1056 | if (image.software_entry() == NULL) |
| 1057 | 1057 | return IMAGE_INIT_FAIL; |
| 1058 | 1058 | |
| 1059 | | UINT8 *ROM = image.device().machine().root_device().memregion(this_cart->region)->base(); |
| 1059 | UINT8 *ROM = image.device().memregion(this_cart->region)->base(); |
| 1060 | 1060 | UINT32 length = image.get_software_region_length("rom"); |
| 1061 | 1061 | |
| 1062 | 1062 | memcpy(ROM, image.get_software_region("rom"), length); |
trunk/src/mame/drivers/megatech.c
| r21704 | r21705 | |
| 555 | 555 | // we keep old region tags for compatibility with older macros... this might be changed at a later stage |
| 556 | 556 | static const struct megatech_cart_region megatech_cart_table[] = |
| 557 | 557 | { |
| 558 | | { ":cart1", 0, "game0" }, |
| 559 | | { ":cart2", 1, "game1" }, |
| 560 | | { ":cart3", 2, "game2" }, |
| 561 | | { ":cart4", 3, "game3" }, |
| 562 | | { ":cart5", 4, "game4" }, |
| 563 | | { ":cart6", 5, "game5" }, |
| 564 | | { ":cart7", 6, "game6" }, |
| 565 | | { ":cart8", 7, "game7" }, |
| 558 | { ":cart1", 0, ":game0" }, |
| 559 | { ":cart2", 1, ":game1" }, |
| 560 | { ":cart3", 2, ":game2" }, |
| 561 | { ":cart4", 3, ":game3" }, |
| 562 | { ":cart5", 4, ":game4" }, |
| 563 | { ":cart6", 5, ":game5" }, |
| 564 | { ":cart7", 6, ":game6" }, |
| 565 | { ":cart8", 7, ":game7" }, |
| 566 | 566 | { 0 } |
| 567 | 567 | }; |
| 568 | 568 | |
| r21704 | r21705 | |
| 586 | 586 | if (image.software_entry() == NULL) |
| 587 | 587 | return IMAGE_INIT_FAIL; |
| 588 | 588 | |
| 589 | | UINT8 *ROM = image.device().machine().root_device().memregion(this_cart->region)->base(); |
| 589 | UINT8 *ROM = image.device().memregion(this_cart->region)->base(); |
| 590 | 590 | UINT32 length = image.get_software_region_length("rom"); |
| 591 | 591 | memcpy(ROM, image.get_software_region("rom"), length); |
| 592 | 592 | |