Use a define for max HDC's

This commit is contained in:
Jasmine Iwanek
2024-07-20 20:05:00 -04:00
parent 7817336567
commit 2a7d300078
3 changed files with 5 additions and 3 deletions

View File

@@ -30,7 +30,7 @@
#include <86box/hdc_ide.h>
#include <86box/hdd.h>
int hdc_current[2];
int hdc_current[HDC_MAX] = { 0, 0 };
#ifdef ENABLE_HDC_LOG
int hdc_do_log = ENABLE_HDC_LOG;

View File

@@ -114,7 +114,7 @@ typedef struct config_t {
/* Other peripherals category */
int fdc_current[FDC_MAX]; /* Floppy disk controller type */
int hdc_current[2]; /* Hard disk controller type */
int hdc_current[HDC_MAX]; /* Hard disk controller type */
int hdc; /* Hard disk controller */
int scsi_card; /* SCSI controller */
int ide_ter_enabled; /* Tertiary IDE controller enabled */

View File

@@ -32,7 +32,9 @@
#define HDC_NONE 0
#define HDC_INTERNAL 1
extern int hdc_current[2];
#define HDC_MAX 2
extern int hdc_current[HDC_MAX];
extern const device_t st506_xt_xebec_device; /* st506_xt_xebec */
extern const device_t st506_xt_wdxt_gen_device; /* st506_xt_wdxt_gen */