A small config.c fix and the Acrosser AR-B1479 now uses the Winbond W29C020 Flash chip.
This commit is contained in:
@@ -1112,12 +1112,12 @@ load_storage_controllers(void)
|
|||||||
if (strlen(p) > 511)
|
if (strlen(p) > 511)
|
||||||
fatal("load_storage_controllers(): strlen(p) > 511\n");
|
fatal("load_storage_controllers(): strlen(p) > 511\n");
|
||||||
else
|
else
|
||||||
strncpy(cassette_fname, p, strlen(p) + 1);
|
strncpy(cassette_fname, p, MIN(511, strlen(p) + 1));
|
||||||
p = config_get_string(cat, "cassette_mode", "");
|
p = config_get_string(cat, "cassette_mode", "");
|
||||||
if (strlen(p) > 511)
|
if (strlen(p) > 511)
|
||||||
fatal("load_storage_controllers(): strlen(p) > 511\n");
|
fatal("load_storage_controllers(): strlen(p) > 511\n");
|
||||||
else
|
else
|
||||||
strncpy(cassette_mode, p, strlen(p) + 1);
|
strncpy(cassette_mode, p, MIN(511, strlen(p) + 1));
|
||||||
cassette_pos = config_get_int(cat, "cassette_position", 0);
|
cassette_pos = config_get_int(cat, "cassette_position", 0);
|
||||||
cassette_srate = config_get_int(cat, "cassette_srate", 44100);
|
cassette_srate = config_get_int(cat, "cassette_srate", 44100);
|
||||||
cassette_append = !!config_get_int(cat, "cassette_append", 0);
|
cassette_append = !!config_get_int(cat, "cassette_append", 0);
|
||||||
|
@@ -1310,7 +1310,7 @@ machine_at_arb1479_init(const machine_t *model)
|
|||||||
device_add(&w83977f_device);
|
device_add(&w83977f_device);
|
||||||
device_add(&keyboard_ps2_ami_pci_device);
|
device_add(&keyboard_ps2_ami_pci_device);
|
||||||
device_add(&stpc_consumer2_device);
|
device_add(&stpc_consumer2_device);
|
||||||
device_add(&sst_flash_39sf020_device);
|
device_add(&winbond_flash_w29c020_device);
|
||||||
|
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user