fixed filename set in NRG track parsing / added NRG test to chdman unit test (nw)

This commit is contained in:
Oliver Stöneberg 2013-01-05 19:25:13 +00:00
parent 3d1e0d9d65
commit 035a7fe8e8
4 changed files with 3 additions and 1 deletions

2
.gitattributes vendored
View File

@ -8044,10 +8044,12 @@ src/regtests/chdman/chdtest.py svneol=native#text/plain
src/regtests/chdman/input/createcd_cue_empty/in.bin -text
src/regtests/chdman/input/createcd_cue_empty/in.cue svneol=native#text/plain
src/regtests/chdman/input/createcd_iso_empty/in.iso -text
src/regtests/chdman/input/createcd_nrg_empty/in.nrg -text
src/regtests/chdman/input/createcd_toc_empty/data.bin -text
src/regtests/chdman/input/createcd_toc_empty/in.toc svneol=native#text/plain
src/regtests/chdman/output/createcd_cue_empty/out.chd -text
src/regtests/chdman/output/createcd_iso_empty/out.chd -text
src/regtests/chdman/output/createcd_nrg_empty/out.chd -text
src/regtests/chdman/output/createcd_toc_empty/out.chd -text
src/regtests/jedutil/baseline/18cv8/18cv8_combinatorial_feedback.txt svneol=native#text/plain
src/regtests/jedutil/baseline/18cv8/18cv8_register_feedback.txt svneol=native#text/plain

View File

@ -388,7 +388,7 @@ chd_error chdcd_parse_nero(const char *tocfname, cdrom_toc &outtoc, chdcd_track_
index2 = read_uint64(infile);
// printf("Track %d: sector size %d mode %x index0 %llx index1 %llx index2 %llx (pregap %d sectors, length %d sectors)\n", track, size, mode, index0, index1, index2, (UINT32)(index1-index0)/size, (UINT32)(index2-index1)/size);
outinfo.track[track-1].fname.cpy(path).cat(tocfname);
outinfo.track[track-1].fname.cpy(tocfname);
outinfo.track[track-1].offset = offset + (UINT32)(index1-index0);
outinfo.track[track-1].idx0offs = 0;
outinfo.track[track-1].idx1offs = 0;

Binary file not shown.

Binary file not shown.