Mercurial > repos > blastem
diff system.h @ 2059:6399a776e981 segacd
Add basic support for BIN/CUE images
author | Michael Pavone <pavone@retrodev.com> |
---|---|
date | Fri, 21 Jan 2022 21:59:46 -0800 |
parents | 3414a4423de1 |
children | 3f29e2726522 |
line wrap: on
line diff
--- a/system.h Fri Jan 21 20:24:48 2022 -0800 +++ b/system.h Fri Jan 21 21:59:46 2022 -0800 @@ -2,6 +2,7 @@ #define SYSTEM_H_ #include <stddef.h> #include <stdint.h> +#include <stdio.h> typedef struct system_header system_header; typedef struct system_media system_media; @@ -84,12 +85,28 @@ MEDIA_CDROM } media_type; +typedef enum { + TRACK_AUDIO, + TRACK_DATA +} track_type; + +typedef struct { + uint32_t fake_pregap; + uint32_t pregap_lba; + uint32_t start_lba; + uint32_t end_lba; + track_type type; +} track_info; + struct system_media { void *buffer; char *dir; char *name; char *extension; system_media *chain; + track_info *tracks; + FILE *f; + uint32_t num_tracks; uint32_t size; media_type type; };