HDD controller type now correctly determined when editing hard disc parameters from configuration manager.
This commit is contained in:
parent
7af913b1b7
commit
3fd4391289
1 changed files with 14 additions and 1 deletions
15
src/hdd.c
15
src/hdd.c
|
|
@ -53,7 +53,20 @@ int hdd_controller_available(int hdd)
|
|||
|
||||
int hdd_controller_current_is_mfm()
|
||||
{
|
||||
return hdd_controllers[hdd_controller_current].is_mfm;
|
||||
int c = 0;
|
||||
|
||||
while (hdd_controllers[c].device)
|
||||
{
|
||||
if (!strcmp(hdd_controller_name, hdd_controllers[c].internal_name))
|
||||
{
|
||||
hdd_controller_current = c;
|
||||
if (strcmp(hdd_controller_name, "none"))
|
||||
return hdd_controllers[c].is_mfm;
|
||||
}
|
||||
c++;
|
||||
}
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
void hdd_controller_init(char *internal_name)
|
||||
|
|
|
|||
Loading…
Reference in a new issue