Previous 199869 Revisions Next

r20094 Saturday 5th January, 2013 at 23:37:41 UTC by smf
skip without reading (nw)
[src/lib/util]chdcd.c

trunk/src/lib/util/chdcd.c
r20093r20094
364364      if (!memcmp(buffer, "DAOX", 4))
365365      {
366366         // skip second chunk size and UPC code
367         read_uint32(infile);
368         fseek(infile, 16, SEEK_CUR);
367         fseek(infile, 20, SEEK_CUR);
369368
370369         fread(&start, 1, 1, infile);
371370         fread(&end, 1, 1, infile);
r20093r20094
377376         offset = 0;
378377         for (track = start; track <= end; track++)
379378         {
380            UINT32 size, mode, unknown;
379            UINT32 size, mode;
381380            UINT64 index0, index1, track_end;
382381
383382            fseek(infile, 12, SEEK_CUR);   // skip ISRC code
384383            size = read_uint16(infile);
385384            mode = read_uint16(infile);
386            unknown = read_uint16(infile);
385            fseek(infile, 2, SEEK_CUR);
387386            index0 = read_uint64(infile);
388387            index1 = read_uint64(infile);
389388            track_end = read_uint64(infile);

Previous 199869 Revisions Next


© 1997-2024 The MAME Team