mirror of
https://github.com/holub/mame
synced 2025-05-10 16:21:42 +03:00
hashfile.c: fixed parent .hsi files not being used by clones, for MESS only. no whatsnew.
This commit is contained in:
parent
b95b97d98c
commit
5d8889e3ae
@ -576,13 +576,21 @@ const char *hashfile_extrainfo(device_image_interface &image)
|
||||
/* now read the hash file */
|
||||
image.crc();
|
||||
extra_info = NULL;
|
||||
int drv = driver_list::find(image.device().machine().system());
|
||||
int compat, drv = driver_list::find(image.device().machine().system());
|
||||
do
|
||||
{
|
||||
rc = read_hash_config(image, driver_list::driver(drv).name);
|
||||
drv = driver_list::compatible_with(drv);
|
||||
// first check if there are compatible systems
|
||||
compat = driver_list::compatible_with(drv);
|
||||
// if so, try to open its hashfile
|
||||
if (compat != -1)
|
||||
drv = compat;
|
||||
// otherwise, try with the parent
|
||||
else
|
||||
drv = driver_list::clone(drv);
|
||||
}
|
||||
while(rc!=NULL && drv != -1);
|
||||
// if no extrainfo has been found but we can try a compatible or a parent set, go back
|
||||
while (rc == NULL && drv != -1);
|
||||
return rc;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user