Previous 15994 Revisions Next

r10026 Thursday 13th January, 2011 at 18:27:00 UTC by Fabio Priuli
enabled support for split set to softlist for cass and flop too
[src/emu]devimage.c

src/emu/devimage.c
r10025r10026
321321            if (has_crc)
322322               crc = (crcbytes[0] << 24) | (crcbytes[1] << 16) | (crcbytes[2] << 8) | crcbytes[3];
323323
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
335324            // attempt reading up the chain through the parents and create a locationtag astring in the format
336325            // " swlist PATHSEPARATOR clonename % swlist PATHSEPARATOR parentname "
337326            // below, we have the code to split the two paths and to separately try to load roms from there
r10025r10026
375364
376365            // try to load from the available location(s)
377366            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))
379368               filerr = common_process_file(tag2.cstr(), has_crc, crc, romp, &m_mame_file);
380#endif
381369
370            if (filerr == FILERR_NONE)
371            {
372               m_file = mame_core_file(m_mame_file);
373               retVal = TRUE;
374            }
375           
376           
382377            break; // load first item for start
383378         }
384379         romp++;   /* something else; skip */

Previous 15994 Revisions Next


© 1998-2018 The MESS Team