Previous 199869 Revisions Next

r34860 Thursday 5th February, 2015 at 10:01:43 UTC by Jürgen Buchmüller
Report core file position in case of a CHD hunk read error (nw)
[src/tools]chdman.c

trunk/src/tools/chdman.c
r243371r243372
25882588         // read the hunk into the buffers
25892589         chd_error err = input_chd.read_hunk(framenum, NULL);
25902590         if (err != CHDERR_NONE)
2591            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));
2591         {
2592            UINT64 filepos = core_ftell(input_chd);
2593            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));
2594         }
25922595
25932596         // write audio
25942597         for (int chnum = 0; chnum < channels; chnum++)


Previous 199869 Revisions Next


© 1997-2024 The MAME Team