Files
Main_MiSTer/cd.h
Zakk f412273f84 Initial support for CHD cdrom images.
As of now, this is CHD v5 only
2020-12-23 18:31:21 -05:00

38 lines
442 B
C

#ifndef CD_H
#define CD_H
#include <libchdr/chd.h>
#include "file_io.h"
typedef struct
{
fileTYPE f;
int offset;
int start;
int end;
int type;
int sector_size;
} track_t;
typedef struct
{
int end;
int last;
int sectorSize;
chd_file *chd_f;
track_t tracks[100];
// fileTYPE sub;
} toc_t;
typedef struct
{
uint8_t m;
uint8_t s;
uint8_t f;
} msf_t;
typedef int (*SendDataFunc) (uint8_t* buf, int len, uint8_t index);
#endif