diff options
author | Michaël Banaan Ananas <happppp@users.noreply.github.com> | 2012-02-04 20:30:08 +0000 |
---|---|---|
committer | Michaël Banaan Ananas <happppp@users.noreply.github.com> | 2012-02-04 20:30:08 +0000 |
commit | f32a8799b46d5940a72f6d4b33c76626d1f30156 (patch) | |
tree | 0dc3c2cac3f1c5ab88cf53304f3d08856a74fd91 | |
parent | 64dbe52ef53802443c5b459524d63d019fdc7aee (diff) |
fix -verifysamples from haze
-rw-r--r-- | src/emu/audit.c | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/src/emu/audit.c b/src/emu/audit.c index 97837a44487..357f28cbbdc 100644 --- a/src/emu/audit.c +++ b/src/emu/audit.c @@ -264,8 +264,19 @@ media_auditor::summary media_auditor::audit_samples() astring curpath; while (path.next(curpath, intf->samplenames[sampnum])) { - // attempt to access the file - file_error filerr = file.open(curpath); + astring wholepath; + 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) { record.set_status(audit_record::STATUS_GOOD, audit_record::SUBSTATUS_GOOD); |