trunk/src/mame/drivers/stv.c
| r21697 | r21698 | |
| 1040 | 1040 | |
| 1041 | 1041 | DEVICE_IMAGE_LOAD_MEMBER( stv_state, stv_cart ) |
| 1042 | 1042 | { |
| 1043 | | // stv_state *state = image.device().machine().driver_data<stv_state>(); |
| 1044 | 1043 | const struct stv_cart_region *stv_cart = &stv_cart_table[0], *this_cart; |
| 1045 | | //const char *pcb_name; |
| 1046 | 1044 | |
| 1047 | 1045 | /* First, determine where this cart has to be loaded */ |
| 1048 | 1046 | while (stv_cart->tag) |
| r21697 | r21698 | |
| 1058 | 1056 | if (image.software_entry() == NULL) |
| 1059 | 1057 | return IMAGE_INIT_FAIL; |
| 1060 | 1058 | |
| 1061 | | UINT8 *ROM = image.device().memregion(this_cart->region)->base(); |
| 1059 | UINT8 *ROM = image.device().machine().root_device().memregion(this_cart->region)->base(); |
| 1062 | 1060 | UINT32 length = image.get_software_region_length("rom"); |
| 1063 | 1061 | |
| 1064 | 1062 | memcpy(ROM, image.get_software_region("rom"), length); |
| r21697 | r21698 | |
| 1081 | 1079 | } |
| 1082 | 1080 | } |
| 1083 | 1081 | |
| 1084 | | //if ((pcb_name = image.get_feature("pcb_type")) == NULL) |
| 1085 | | // return IMAGE_INIT_FAIL; |
| 1086 | | |
| 1087 | 1082 | return IMAGE_INIT_PASS; |
| 1088 | 1083 | } |
| 1089 | 1084 | |