16 lines
591 B
C
16 lines
591 B
C
typedef struct hdd_file_t
|
|
{
|
|
FILE *f;
|
|
int spt;
|
|
int hpc;
|
|
int tracks;
|
|
int sectors;
|
|
int read_only;
|
|
} hdd_file_t;
|
|
|
|
void hdd_load(hdd_file_t *hdd, int d, const char *fn);
|
|
void hdd_load_ext(hdd_file_t *hdd, const char *fn, int spt, int hpc, int tracks, int read_only);
|
|
void hdd_close(hdd_file_t *hdd);
|
|
int hdd_read_sectors(hdd_file_t *hdd, int offset, int nr_sectors, void *buffer);
|
|
int hdd_write_sectors(hdd_file_t *hdd, int offset, int nr_sectors, void *buffer);
|
|
int hdd_format_sectors(hdd_file_t *hdd, int offset, int nr_sectors);
|