src/emu/devimage.c
| r10025 | r10026 | |
| 321 | 321 | if (has_crc) |
| 322 | 322 | crc = (crcbytes[0] << 24) | (crcbytes[1] << 16) | (crcbytes[2] << 8) | crcbytes[3]; |
| 323 | 323 | |
| 324 | | #if 1 |
| 325 | | astring tmp(swlist, PATH_SEPARATOR, swname); |
| 326 | | locationtag.cpy(tmp); |
| 327 | | filerr = common_process_file(locationtag.cstr(), has_crc, crc, romp, &m_mame_file); |
| 328 | | if (filerr == FILERR_NONE) |
| 329 | | { |
| 330 | | m_file = mame_core_file(m_mame_file); |
| 331 | | retVal = TRUE; |
| 332 | | } |
| 333 | | |
| 334 | | #else |
| 335 | 324 | // attempt reading up the chain through the parents and create a locationtag astring in the format |
| 336 | 325 | // " swlist PATHSEPARATOR clonename % swlist PATHSEPARATOR parentname " |
| 337 | 326 | // below, we have the code to split the two paths and to separately try to load roms from there |
| r10025 | r10026 | |
| 375 | 364 | |
| 376 | 365 | // try to load from the available location(s) |
| 377 | 366 | filerr = common_process_file(tag1.cstr(), has_crc, crc, romp, &m_mame_file); |
| 378 | | if ((romdata->file == NULL) && (tag2.cstr() != NULL)) |
| 367 | if ((m_mame_file == NULL) && (tag2.cstr() != NULL)) |
| 379 | 368 | filerr = common_process_file(tag2.cstr(), has_crc, crc, romp, &m_mame_file); |
| 380 | | #endif |
| 381 | 369 | |
| 370 | if (filerr == FILERR_NONE) |
| 371 | { |
| 372 | m_file = mame_core_file(m_mame_file); |
| 373 | retVal = TRUE; |
| 374 | } |
| 375 | |
| 376 | |
| 382 | 377 | break; // load first item for start |
| 383 | 378 | } |
| 384 | 379 | romp++; /* something else; skip */ |