src/mess/machine/ataricrt.c
| r8719 | r8720 | |
| 289 | 289 | const char *info; |
| 290 | 290 | memcpy(&mem[0x4000], &mem[0x8000], 0x4000); |
| 291 | 291 | info = image.extrainfo(); |
| 292 | | if (info!=NULL && strcmp(info, "A13MIRRORING")==0) |
| 292 | if (strcmp(info, "") && !strcmp(info, "A13MIRRORING")) |
| 293 | 293 | { |
| 294 | 294 | memcpy(&mem[0x8000], &mem[0xa000], 0x2000); |
| 295 | 295 | memcpy(&mem[0x6000], &mem[0x4000], 0x2000); |
src/mess/machine/nes.c
| r8719 | r8720 | |
| 646 | 646 | |
| 647 | 647 | if (image.software_entry() == NULL) |
| 648 | 648 | { |
| 649 | | const char *mapinfo; |
| 649 | const char *mapinfo = NULL; |
| 650 | 650 | int mapint1 = 0, mapint2 = 0, mapint3 = 0, mapint4 = 0, goodcrcinfo = 0; |
| 651 | 651 | char magic[4], extend[5]; |
| 652 | 652 | int local_options = 0; |
| r8719 | r8720 | |
| 665 | 665 | state->prg_ram = 1; // always map state->wram in bank5 (eventually, this should be enabled only for some mappers) |
| 666 | 666 | |
| 667 | 667 | // check if the image is recognized by nes.hsi |
| 668 | | mapinfo = image.extrainfo(); |
| 668 | if (strcmp(image.extrainfo(), "")) |
| 669 | mapinfo = image.extrainfo(); |
| 669 | 670 | |
| 670 | 671 | // image_extrainfo() resets the file position back to start. |
| 671 | 672 | // Let's skip past the magic header once again. |
src/mess/machine/msx.c
| r8719 | r8720 | |
| 88 | 88 | int size_aligned; |
| 89 | 89 | UINT8 *mem; |
| 90 | 90 | int type; |
| 91 | | const char *extra; |
| 91 | const char *extra = NULL; |
| 92 | 92 | char *sramfile; |
| 93 | 93 | slot_state *state; |
| 94 | 94 | int id = -1; |
| r8719 | r8720 | |
| 133 | 133 | } |
| 134 | 134 | |
| 135 | 135 | /* see if msx.crc will tell us more */ |
| 136 | | extra = image.extrainfo (); |
| 137 | | if (!extra) { |
| 136 | if (strcmp(image.extrainfo(), "")) |
| 137 | extra = image.extrainfo (); |
| 138 | |
| 139 | if (!extra) |
| 140 | { |
| 138 | 141 | logerror("cart #%d: warning: no information in crc file\n", id); |
| 139 | 142 | type = -1; |
| 140 | 143 | } |
| 141 | | else if ((1 != sscanf (extra, "%d", &type) ) || |
| 142 | | type < 0 || type > SLOT_LAST_CARTRIDGE_TYPE) { |
| 144 | else if ((1 != sscanf(extra, "%d", &type) ) || |
| 145 | type < 0 || type > SLOT_LAST_CARTRIDGE_TYPE) |
| 146 | { |
| 143 | 147 | logerror("cart #%d: warning: information in crc file not valid\n", id); |
| 144 | 148 | type = -1; |
| 145 | 149 | } |
| 146 | | else { |
| 150 | else |
| 151 | { |
| 147 | 152 | logerror ("cart #%d: info: cart extra info: '%s' = %s\n", id, extra, |
| 148 | 153 | msx_slot_list[type].name); |
| 149 | 154 | } |
| 150 | 155 | |
| 151 | 156 | /* if not, attempt autodetection */ |
| 152 | | if (type < 0) { |
| 157 | if (type < 0) |
| 158 | { |
| 153 | 159 | type = msx_probe_type (mem, size); |
| 154 | 160 | |
| 155 | 161 | if (mem[0] != 'A' || mem[1] != 'B') { |
src/mess/machine/pce.c
| r8719 | r8720 | |
| 114 | 114 | { |
| 115 | 115 | UINT32 size; |
| 116 | 116 | int split_rom = 0, offset = 0; |
| 117 | | const char *extrainfo; |
| 117 | const char *extrainfo = NULL; |
| 118 | 118 | unsigned char *ROM; |
| 119 | 119 | logerror("*** DEVICE_IMAGE_LOAD(pce_cart) : %s\n", image.filename()); |
| 120 | 120 | |
| r8719 | r8720 | |
| 141 | 141 | { |
| 142 | 142 | image.fseek(offset, SEEK_SET); |
| 143 | 143 | image.fread( ROM, size); |
| 144 | | extrainfo = image.extrainfo(); |
| 144 | if (strcmp(image.extrainfo(), "")) |
| 145 | extrainfo = image.extrainfo(); |
| 145 | 146 | } |
| 146 | 147 | else |
| 147 | | { |
| 148 | 148 | memcpy(ROM, image.get_software_region("rom") + offset, size); |
| 149 | | extrainfo = NULL; |
| 150 | | } |
| 151 | 149 | |
| 152 | 150 | if (extrainfo) |
| 153 | 151 | { |
src/mess/drivers/a2600.c
| r8719 | r8720 | |
| 560 | 560 | running_machine *machine = image.device().machine; |
| 561 | 561 | const struct _extrainfo_banking_def *eibd; |
| 562 | 562 | UINT8 *cart = CART; |
| 563 | | const char *extrainfo; |
| 563 | const char *extrainfo = NULL; |
| 564 | 564 | |
| 565 | 565 | cart_size = image.length(); |
| 566 | 566 | |
| r8719 | r8720 | |
| 596 | 596 | } |
| 597 | 597 | } |
| 598 | 598 | |
| 599 | | extrainfo = image.extrainfo(); |
| 599 | if (strcmp(image.extrainfo(), "")) |
| 600 | extrainfo = image.extrainfo(); |
| 600 | 601 | |
| 601 | | if ( extrainfo && extrainfo[0] ) |
| 602 | if (extrainfo && extrainfo[0]) |
| 602 | 603 | { |
| 603 | | for ( eibd = extrainfo_banking_defs; eibd->extrainfo[0]; eibd++ ) |
| 604 | for (eibd = extrainfo_banking_defs; eibd->extrainfo[0]; eibd++) |
| 604 | 605 | { |
| 605 | | if ( ! mame_stricmp( eibd->extrainfo, extrainfo ) ) |
| 606 | if (! mame_stricmp(eibd->extrainfo, extrainfo)) |
| 606 | 607 | { |
| 607 | 608 | banking_mode = eibd->bank_mode; |
| 608 | 609 | } |