Mercurial > repos > blastem
diff system.h @ 2076:3f29e2726522
Added basic support for ISO images for games that only have a data track
author | Michael Pavone <pavone@retrodev.com> |
---|---|
date | Mon, 31 Jan 2022 22:07:18 -0800 |
parents | 6399a776e981 |
children | bafb757e1cd2 |
line wrap: on
line diff
--- a/system.h Mon Jan 31 19:05:54 2022 -0800 +++ b/system.h Mon Jan 31 22:07:18 2022 -0800 @@ -98,6 +98,9 @@ track_type type; } track_info; +typedef void (*seek_fun)(system_media *media, uint32_t sector); +typedef uint8_t (*read_fun)(system_media *media, uint32_t offset); + struct system_media { void *buffer; char *dir; @@ -106,9 +109,13 @@ system_media *chain; track_info *tracks; FILE *f; + seek_fun seek; + read_fun read; uint32_t num_tracks; uint32_t size; + uint32_t cur_sector; media_type type; + uint8_t in_fake_pregap; }; #define OPT_ADDRESS_LOG (1U << 31U)