src/emu/imagedev/flopdrv.c
| r14184 | r14185 | |
| 750 | 750 | int floppy_get_drive(device_t *image) |
| 751 | 751 | { |
| 752 | 752 | int drive =0; |
| 753 | | if (strcmp(image->tag(), FLOPPY_0) == 0) drive = 0; |
| 754 | | if (strcmp(image->tag(), FLOPPY_1) == 0) drive = 1; |
| 755 | | if (strcmp(image->tag(), FLOPPY_2) == 0) drive = 2; |
| 756 | | if (strcmp(image->tag(), FLOPPY_3) == 0) drive = 3; |
| 753 | if (strcmp(image->tag(), ":" FLOPPY_0) == 0) drive = 0; |
| 754 | if (strcmp(image->tag(), ":" FLOPPY_1) == 0) drive = 1; |
| 755 | if (strcmp(image->tag(), ":" FLOPPY_2) == 0) drive = 2; |
| 756 | if (strcmp(image->tag(), ":" FLOPPY_3) == 0) drive = 3; |
| 757 | 757 | return drive; |
| 758 | 758 | } |
| 759 | 759 | |
src/mess/machine/990_tap.c
| r14184 | r14185 | |
| 113 | 113 | static int tape_get_id(device_t *image) |
| 114 | 114 | { |
| 115 | 115 | int drive =0; |
| 116 | | if (strcmp(image->tag(), "tape0") == 0) drive = 0; |
| 117 | | if (strcmp(image->tag(), "tape1") == 0) drive = 1; |
| 118 | | if (strcmp(image->tag(), "tape2") == 0) drive = 2; |
| 119 | | if (strcmp(image->tag(), "tape3") == 0) drive = 3; |
| 116 | if (strcmp(image->tag(), ":tape0") == 0) drive = 0; |
| 117 | if (strcmp(image->tag(), ":tape1") == 0) drive = 1; |
| 118 | if (strcmp(image->tag(), ":tape2") == 0) drive = 2; |
| 119 | if (strcmp(image->tag(), ":tape3") == 0) drive = 3; |
| 120 | 120 | return drive; |
| 121 | 121 | } |
| 122 | 122 | |
src/mess/machine/intv.c
| r14184 | r14185 | |
| 827 | 827 | |
| 828 | 828 | DEVICE_IMAGE_LOAD( intvkbd_cart ) |
| 829 | 829 | { |
| 830 | | if (strcmp(image.device().tag(),"cart1") == 0) /* Legacy cartridge slot */ |
| 830 | if (strcmp(image.device().tag(),":cart1") == 0) /* Legacy cartridge slot */ |
| 831 | 831 | { |
| 832 | 832 | /* First, initialize these as empty so that the intellivision |
| 833 | 833 | * will think that the playcable is not attached */ |
| r14184 | r14185 | |
| 840 | 840 | intv_load_rom_file(image); |
| 841 | 841 | } |
| 842 | 842 | |
| 843 | | if (strcmp(image.device().tag(),"cart2") == 0) /* Keyboard component cartridge slot */ |
| 843 | if (strcmp(image.device().tag(),":cart2") == 0) /* Keyboard component cartridge slot */ |
| 844 | 844 | { |
| 845 | 845 | UINT8 *memory = image.device().machine().region("keyboard")->base(); |
| 846 | 846 | |
src/mess/machine/snescart.c
| r14184 | r14185 | |
| 238 | 238 | device_image_interface *image = dynamic_cast<device_image_interface *>(machine.device(cart_tag)); |
| 239 | 239 | image->battery_load(battery_ram, 0x20000, 0); |
| 240 | 240 | |
| 241 | | if (strcmp(cart_tag, "slot_a") == 0) |
| 241 | if (strcmp(cart_tag, ":slot_a") == 0) |
| 242 | 242 | st_sram_offset = 0x608000; |
| 243 | 243 | |
| 244 | | if (strcmp(cart_tag, "slot_b") == 0) |
| 244 | if (strcmp(cart_tag, ":slot_b") == 0) |
| 245 | 245 | st_sram_offset = 0x708000; |
| 246 | 246 | |
| 247 | 247 | /* Cart RAM is at 0x60-0x63:0x8000-0xffff (+0x10 for slot2) */ |
| r14184 | r14185 | |
| 1155 | 1155 | |
| 1156 | 1156 | snes_ram = machine.region("maincpu")->base(); |
| 1157 | 1157 | |
| 1158 | | if (strcmp(image.device().tag(), "slot_a") == 0) |
| 1158 | if (strcmp(image.device().tag(), ":slot_a") == 0) |
| 1159 | 1159 | { |
| 1160 | 1160 | st_data_offset = 0x200000; |
| 1161 | 1161 | slot_id = 0; |
| 1162 | 1162 | } |
| 1163 | 1163 | |
| 1164 | | if (strcmp(image.device().tag(), "slot_b") == 0) |
| 1164 | if (strcmp(image.device().tag(), ":slot_b") == 0) |
| 1165 | 1165 | { |
| 1166 | 1166 | st_data_offset = 0x400000; |
| 1167 | 1167 | slot_id = 1; |
src/mess/machine/bbc.c
| r14184 | r14185 | |
| 1960 | 1960 | |
| 1961 | 1961 | size = image.length(); |
| 1962 | 1962 | |
| 1963 | | if (strcmp(image.device().tag(),"cart1") == 0) |
| 1963 | if (strcmp(image.device().tag(),":cart1") == 0) |
| 1964 | 1964 | { |
| 1965 | 1965 | index = 0; |
| 1966 | 1966 | } |
| 1967 | | if (strcmp(image.device().tag(),"cart2") == 0) |
| 1967 | if (strcmp(image.device().tag(),":cart2") == 0) |
| 1968 | 1968 | { |
| 1969 | 1969 | index = 1; |
| 1970 | 1970 | } |
| 1971 | | if (strcmp(image.device().tag(),"cart3") == 0) |
| 1971 | if (strcmp(image.device().tag(),":cart3") == 0) |
| 1972 | 1972 | { |
| 1973 | 1973 | index = 2; |
| 1974 | 1974 | } |
| 1975 | | if (strcmp(image.device().tag(),"cart4") == 0) |
| 1975 | if (strcmp(image.device().tag(),":cart4") == 0) |
| 1976 | 1976 | { |
| 1977 | 1977 | index = 3; |
| 1978 | 1978 | } |
src/mess/machine/990_hd.c
| r14184 | r14185 | |
| 171 | 171 | { |
| 172 | 172 | int id = -1; |
| 173 | 173 | |
| 174 | | if ( ! strcmp( "harddisk1", device->tag() ) ) |
| 174 | if ( ! strcmp( ":harddisk1", device->tag() ) ) |
| 175 | 175 | { |
| 176 | 176 | id = 0; |
| 177 | 177 | } |
| 178 | | else if ( ! strcmp( "harddisk2", device->tag() ) ) |
| 178 | else if ( ! strcmp( ":harddisk2", device->tag() ) ) |
| 179 | 179 | { |
| 180 | 180 | id = 1; |
| 181 | 181 | } |
| 182 | | else if ( ! strcmp( "harddisk3", device->tag() ) ) |
| 182 | else if ( ! strcmp( ":harddisk3", device->tag() ) ) |
| 183 | 183 | { |
| 184 | 184 | id = 2; |
| 185 | 185 | } |
| 186 | | else if ( ! strcmp( "harddisk4", device->tag() ) ) |
| 186 | else if ( ! strcmp( ":harddisk4", device->tag() ) ) |
| 187 | 187 | { |
| 188 | 188 | id = 3; |
| 189 | 189 | } |
src/mess/machine/sms.c
| r14184 | r14185 | |
| 1634 | 1634 | sms_state *state = machine.driver_data<sms_state>(); |
| 1635 | 1635 | int size, index = 0, offset = 0; |
| 1636 | 1636 | |
| 1637 | | if (strcmp(image.device().tag(), "cart1") == 0) |
| 1637 | if (strcmp(image.device().tag(), ":cart1") == 0) |
| 1638 | 1638 | index = 0; |
| 1639 | | if (strcmp(image.device().tag(), "cart2") == 0) |
| 1639 | if (strcmp(image.device().tag(), ":cart2") == 0) |
| 1640 | 1640 | index = 1; |
| 1641 | | if (strcmp(image.device().tag(), "cart3") == 0) |
| 1641 | if (strcmp(image.device().tag(), ":cart3") == 0) |
| 1642 | 1642 | index = 2; |
| 1643 | | if (strcmp(image.device().tag(), "cart4") == 0) |
| 1643 | if (strcmp(image.device().tag(), ":cart4") == 0) |
| 1644 | 1644 | index = 3; |
| 1645 | | if (strcmp(image.device().tag(), "cart5") == 0) |
| 1645 | if (strcmp(image.device().tag(), ":cart5") == 0) |
| 1646 | 1646 | index = 4; |
| 1647 | | if (strcmp(image.device().tag(), "cart6") == 0) |
| 1647 | if (strcmp(image.device().tag(), ":cart6") == 0) |
| 1648 | 1648 | index = 5; |
| 1649 | | if (strcmp(image.device().tag(), "cart7") == 0) |
| 1649 | if (strcmp(image.device().tag(), ":cart7") == 0) |
| 1650 | 1650 | index = 6; |
| 1651 | | if (strcmp(image.device().tag(), "cart8") == 0) |
| 1651 | if (strcmp(image.device().tag(), ":cart8") == 0) |
| 1652 | 1652 | index = 7; |
| 1653 | | if (strcmp(image.device().tag(), "cart9") == 0) |
| 1653 | if (strcmp(image.device().tag(), ":cart9") == 0) |
| 1654 | 1654 | index = 8; |
| 1655 | | if (strcmp(image.device().tag(), "cart10") == 0) |
| 1655 | if (strcmp(image.device().tag(), ":cart10") == 0) |
| 1656 | 1656 | index = 9; |
| 1657 | | if (strcmp(image.device().tag(), "cart11") == 0) |
| 1657 | if (strcmp(image.device().tag(), ":cart11") == 0) |
| 1658 | 1658 | index = 10; |
| 1659 | | if (strcmp(image.device().tag(), "cart12") == 0) |
| 1659 | if (strcmp(image.device().tag(), ":cart12") == 0) |
| 1660 | 1660 | index = 11; |
| 1661 | | if (strcmp(image.device().tag(), "cart13") == 0) |
| 1661 | if (strcmp(image.device().tag(), ":cart13") == 0) |
| 1662 | 1662 | index = 12; |
| 1663 | | if (strcmp(image.device().tag(), "cart14") == 0) |
| 1663 | if (strcmp(image.device().tag(), ":cart14") == 0) |
| 1664 | 1664 | index = 13; |
| 1665 | | if (strcmp(image.device().tag(), "cart15") == 0) |
| 1665 | if (strcmp(image.device().tag(), ":cart15") == 0) |
| 1666 | 1666 | index = 14; |
| 1667 | | if (strcmp(image.device().tag(), "cart16") == 0) |
| 1667 | if (strcmp(image.device().tag(), ":cart16") == 0) |
| 1668 | 1668 | index = 15; |
| 1669 | 1669 | |
| 1670 | 1670 | state->m_cartridge[index].features = 0; |
src/mess/machine/msx.c
| r14184 | r14185 | |
| 81 | 81 | slot_state *st; |
| 82 | 82 | int id = -1; |
| 83 | 83 | |
| 84 | | if (strcmp(image.device().tag(),"cart1")==0) |
| 84 | if (strcmp(image.device().tag(),":cart1")==0) |
| 85 | 85 | id = 0; |
| 86 | 86 | |
| 87 | | if (strcmp(image.device().tag(),"cart2")==0) |
| 87 | if (strcmp(image.device().tag(),":cart2")==0) |
| 88 | 88 | id = 1; |
| 89 | 89 | |
| 90 | 90 | if( id == -1 ) |
| r14184 | r14185 | |
| 340 | 340 | msx_state *state = image.device().machine().driver_data<msx_state>(); |
| 341 | 341 | int id = -1; |
| 342 | 342 | |
| 343 | | if (strcmp(image.device().tag(),"cart1")==0) |
| 343 | if (strcmp(image.device().tag(),":cart1")==0) |
| 344 | 344 | id = 0; |
| 345 | 345 | |
| 346 | | if (strcmp(image.device().tag(),"cart2")==0) |
| 346 | if (strcmp(image.device().tag(),":cart2")==0) |
| 347 | 347 | id = 1; |
| 348 | 348 | |
| 349 | 349 | if( id == -1 ) |