Added support for custom HDX hard disk image format that is less size-limited than HDI and supports storing translation parameters;

Commented out excess EGA logging.
This commit is contained in:
OBattler
2017-02-15 18:19:00 +01:00
parent de6f785029
commit 419b0b0c58
7 changed files with 232 additions and 26 deletions

View File

@@ -517,13 +517,14 @@ char pcempath[512];
/*Hard disc*/
typedef struct
typedef struct __attribute__((__packed__))
{
FILE *f;
uint64_t spt,hpc; /*Sectors per track, heads per cylinder*/
uint64_t tracks;
FILE *f;
uint64_t spt,hpc; /*Sectors per track, heads per cylinder*/
uint64_t tracks;
int is_hdi;
uint32_t base;
uint32_t base;
uint64_t at_spt,at_hpc; /*[Translation] Sectors per track, heads per cylinder*/
} hard_disk_t;
#define IDE_NUM 8