mirror of
https://github.com/holub/mame
synced 2025-05-09 07:41:50 +03:00
fix -verifysamples from haze
This commit is contained in:
parent
64dbe52ef5
commit
f32a8799b4
@ -264,8 +264,19 @@ media_auditor::summary media_auditor::audit_samples()
|
|||||||
astring curpath;
|
astring curpath;
|
||||||
while (path.next(curpath, intf->samplenames[sampnum]))
|
while (path.next(curpath, intf->samplenames[sampnum]))
|
||||||
{
|
{
|
||||||
// attempt to access the file
|
astring wholepath;
|
||||||
file_error filerr = file.open(curpath);
|
wholepath = curpath + ".flac";
|
||||||
|
|
||||||
|
// attempt to access the file (.flac)
|
||||||
|
file_error filerr = file.open(wholepath);
|
||||||
|
|
||||||
|
if (filerr != FILERR_NONE)
|
||||||
|
{
|
||||||
|
wholepath = curpath + ".wav";
|
||||||
|
// try again with .wav
|
||||||
|
filerr = file.open(wholepath);
|
||||||
|
}
|
||||||
|
|
||||||
if (filerr == FILERR_NONE)
|
if (filerr == FILERR_NONE)
|
||||||
{
|
{
|
||||||
record.set_status(audit_record::STATUS_GOOD, audit_record::SUBSTATUS_GOOD);
|
record.set_status(audit_record::STATUS_GOOD, audit_record::SUBSTATUS_GOOD);
|
||||||
|
Loading…
Reference in New Issue
Block a user