Fix to the MOD type reading and writing in config.c.

This commit is contained in:
OBattler
2020-08-02 19:02:56 +02:00
parent 5ec99e3357
commit 15bca17e94

View File

@@ -1432,9 +1432,9 @@ load_other_removable_devices(void)
sprintf(temp, "mo_%02i_parameters", c+1);
p = config_get_string(cat, temp, NULL);
if (p != NULL)
sscanf(p, "%01u, %s", &mo_drives[c].type, s);
sscanf(p, "%u, %s", &mo_drives[c].type, s);
else
sscanf("0, none", "%01u, %s", &mo_drives[c].type, s);
sscanf("00, none", "%u, %s", &mo_drives[c].type, s);
mo_drives[c].bus_type = hdd_string_to_bus(s, 1);
/* Default values, needed for proper operation of the Settings dialog. */