Add a machine flag for machines requiring softfloat FPU and remove the existing restrictions on using dynarec and softfloat together

This commit is contained in:
Alexander Babikov
2023-06-29 03:52:59 +05:00
parent 71d95c7169
commit b5bf8e63a4
5 changed files with 24 additions and 35 deletions

View File

@@ -714,7 +714,8 @@ win_settings_machine_recalc_fpu(HWND hdlg)
c++;
}
settings_set_check(hdlg, IDC_CHECK_SOFTFLOAT, temp_fpu_softfloat);
settings_set_check(hdlg, IDC_CHECK_SOFTFLOAT, (machine_has_flags(temp_machine, MACHINE_SOFTFLOAT_ONLY) ? TRUE : temp_fpu_softfloat));
settings_enable_window(hdlg, IDC_CHECK_SOFTFLOAT, (machine_has_flags(temp_machine, MACHINE_SOFTFLOAT_ONLY) ? FALSE : TRUE));
settings_enable_window(hdlg, IDC_COMBO_FPU, c > 1);