mirror of
https://github.com/holub/mame
synced 2025-05-07 06:44:51 +03:00
(MESS) hashfile.c: Make hasfile processing work without a running_machine(). (nw)
This commit is contained in:
parent
f0842fdbfd
commit
8fa494bd36
@ -543,7 +543,7 @@ bool read_hash_config(device_image_interface &image, const char *sysname, astrin
|
|||||||
const hash_info *info = NULL;
|
const hash_info *info = NULL;
|
||||||
|
|
||||||
/* open the hash file */
|
/* open the hash file */
|
||||||
hashfile = hashfile_open(image.device().machine().options(), sysname, FALSE, NULL);
|
hashfile = hashfile_open(image.device().mconfig().options(), sysname, FALSE, NULL);
|
||||||
if (!hashfile)
|
if (!hashfile)
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
@ -568,7 +568,7 @@ bool hashfile_extrainfo(device_image_interface &image, astring &result)
|
|||||||
/* now read the hash file */
|
/* now read the hash file */
|
||||||
image.crc();
|
image.crc();
|
||||||
extra_info = NULL;
|
extra_info = NULL;
|
||||||
int drv = driver_list::find(image.device().machine().system());
|
int drv = driver_list::find(*image.device().mconfig().options().system());
|
||||||
int compat, open = drv;
|
int compat, open = drv;
|
||||||
bool hashfound;
|
bool hashfound;
|
||||||
do
|
do
|
||||||
|
Loading…
Reference in New Issue
Block a user