mirror of
https://github.com/holub/mame
synced 2025-04-24 01:11:11 +03:00
Report core file position in case of a CHD hunk read error (nw)
This commit is contained in:
parent
d87d0bcf6e
commit
ccfd07b539
@ -2588,7 +2588,10 @@ static void do_extract_ld(parameters_t ¶ms)
|
||||
// read the hunk into the buffers
|
||||
chd_error err = input_chd.read_hunk(framenum, NULL);
|
||||
if (err != CHDERR_NONE)
|
||||
report_error(1, "Error reading hunk %" I64FMT "d from CHD file (%s): %s\n", framenum, params.find(OPTION_INPUT)->cstr(), chd_file::error_string(err));
|
||||
{
|
||||
UINT64 filepos = core_ftell(input_chd);
|
||||
report_error(1, "Error reading hunk %" I64FMT "d at offset %" I64FMT "d from CHD file (%s): %s\n", framenum, filepos, params.find(OPTION_INPUT)->cstr(), chd_file::error_string(err));
|
||||
}
|
||||
|
||||
// write audio
|
||||
for (int chnum = 0; chnum < channels; chnum++)
|
||||
|
Loading…
Reference in New Issue
Block a user