mirror of
https://github.com/holub/mame
synced 2025-05-20 12:48:53 +03:00
changed audit to report best available if the romset contains no dumped or required roms.
This commit is contained in:
parent
011ef21df8
commit
cd0992c812
@ -227,14 +227,11 @@ skip:
|
|||||||
int audit_summary(const game_driver *gamedrv, int count, const audit_record *records, int output)
|
int audit_summary(const game_driver *gamedrv, int count, const audit_record *records, int output)
|
||||||
{
|
{
|
||||||
int overall_status = CORRECT;
|
int overall_status = CORRECT;
|
||||||
int notfound = 0;
|
|
||||||
int recnum;
|
int recnum;
|
||||||
|
|
||||||
/* no count AND no records means not found, no count only means no ROMs required (= correct) */
|
/* no count AND no records means not found, no count only means no ROMs required (= correct) */
|
||||||
if (count == 0 && records == NULL)
|
if (count == 0 && records == NULL)
|
||||||
return NOTFOUND;
|
return NOTFOUND;
|
||||||
else if (count == 0)
|
|
||||||
return CORRECT;
|
|
||||||
|
|
||||||
/* loop over records */
|
/* loop over records */
|
||||||
for (recnum = 0; recnum < count; recnum++)
|
for (recnum = 0; recnum < count; recnum++)
|
||||||
@ -246,10 +243,6 @@ int audit_summary(const game_driver *gamedrv, int count, const audit_record *rec
|
|||||||
if (record->substatus == SUBSTATUS_GOOD)
|
if (record->substatus == SUBSTATUS_GOOD)
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
/* count the number of missing items */
|
|
||||||
if (record->status == AUDIT_STATUS_NOT_FOUND)
|
|
||||||
notfound++;
|
|
||||||
|
|
||||||
/* output the game name, file name, and length (if applicable) */
|
/* output the game name, file name, and length (if applicable) */
|
||||||
if (output)
|
if (output)
|
||||||
{
|
{
|
||||||
@ -316,7 +309,7 @@ int audit_summary(const game_driver *gamedrv, int count, const audit_record *rec
|
|||||||
overall_status = MAX(overall_status, best_new_status);
|
overall_status = MAX(overall_status, best_new_status);
|
||||||
}
|
}
|
||||||
|
|
||||||
return (notfound == count) ? NOTFOUND : overall_status;
|
return overall_status;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ -444,7 +437,7 @@ static int audit_one_rom(core_options *options, const rom_entry *rom, const char
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* return TRUE if we found anything at all */
|
/* return TRUE if we found anything at all */
|
||||||
return (drv != NULL);
|
return( record->status != AUDIT_STATUS_NOT_FOUND || record->substatus == SUBSTATUS_NOT_FOUND_NODUMP || record->substatus == SUBSTATUS_NOT_FOUND_OPTIONAL );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user