(Re-)added the Deskpro 386, but only in the development/incomplete section of the code definitions.
Selected XT and AT clones can use either their built-in FDC controller or an external one (the IBM AT and Compaq AT machines don't support booting from a 1.44M floppy so this makes the external floppy useful).
Added the FDC to the Adaptec AHA-154xCF ("2" variant) and defaulted to None to keep compatibility with existing FDC's.
This commit is contained in:
29
src/config.c
29
src/config.c
@@ -784,24 +784,21 @@ load_other_peripherals(void)
|
||||
else
|
||||
scsi_card_current = 0;
|
||||
|
||||
if (machines[machine].flags & MACHINE_FDC_FIXED) {
|
||||
config_delete_var(cat, "fdc");
|
||||
p = config_get_string(cat, "fdc", NULL);
|
||||
if (p == NULL) {
|
||||
p = (char *)malloc((strlen("internal")+1)*sizeof(char));
|
||||
strcpy(p, "internal");
|
||||
free_p = 1;
|
||||
}
|
||||
|
||||
if (!strcmp(p, "internal"))
|
||||
fdc_type = FDC_INTERNAL;
|
||||
} else {
|
||||
p = config_get_string(cat, "fdc", NULL);
|
||||
if (p == NULL) {
|
||||
if (machines[machine].flags & MACHINE_FDC) {
|
||||
p = (char *)malloc((strlen("internal")+1)*sizeof(char));
|
||||
strcpy(p, "internal");
|
||||
} else {
|
||||
p = (char *)malloc((strlen("none")+1)*sizeof(char));
|
||||
strcpy(p, "none");
|
||||
}
|
||||
free_p = 1;
|
||||
}
|
||||
else
|
||||
fdc_type = fdc_ext_get_from_internal_name(p);
|
||||
if (free_p)
|
||||
free(p);
|
||||
|
||||
if (free_p) {
|
||||
free(p);
|
||||
p = NULL;
|
||||
}
|
||||
|
||||
p = config_get_string(cat, "hdc", NULL);
|
||||
|
||||
Reference in New Issue
Block a user