diff options
author | 2012-03-04 02:17:35 +0000 | |
---|---|---|
committer | 2012-03-04 02:17:35 +0000 | |
commit | bb993d1174a63b09b040251dec236a0a2c60aeb2 (patch) | |
tree | 76497c6e90eb4f2d0fb92d69f1a6c15e81a84e1f /src/lib/util/cdrom.h | |
parent | b89d7c94c7a2000cb896eb7fd0efa5cc012c672f (diff) |
chdman: Correct processing of GDI files, add ability to extractcd to .gdi, verified perfect checksum round-tripping on .GDI files. [R. Belmont]
Diffstat (limited to 'src/lib/util/cdrom.h')
-rw-r--r-- | src/lib/util/cdrom.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/lib/util/cdrom.h b/src/lib/util/cdrom.h index 7ac5bead1b7..6a2832e21f8 100644 --- a/src/lib/util/cdrom.h +++ b/src/lib/util/cdrom.h @@ -84,7 +84,7 @@ enum CD_SUB_NONE /* no subcode data stored */ }; - +#define CD_FLAG_GDROM 0x00000001 // disc is a GD-ROM, all tracks should be stored with GD-ROM metadata /*************************************************************************** TYPE DEFINITIONS @@ -109,6 +109,9 @@ struct cdrom_track_info UINT32 pgdatasize; /* size of data in each sector of the pregap */ UINT32 pgsubsize; /* size of subchannel data in each sector of the pregap */ + /* fields used in CHDMAN only */ + UINT32 padframes; /* number of frames of padding to add to the end of the track; needed for GDI */ + /* fields used in MAME only */ UINT32 physframeofs; /* frame number on the real CD this track starts at */ UINT32 chdframeofs; /* frame number this track starts at on the CHD */ @@ -118,6 +121,7 @@ struct cdrom_track_info struct cdrom_toc { UINT32 numtrks; /* number of tracks */ + UINT32 flags; /* see FLAG_ above */ cdrom_track_info tracks[CD_MAX_TRACKS]; }; |