[misc] don't download BIOS-related files if selected target isn't BIOS

* Part of #799
* Also set rufus-next to 2.11
This commit is contained in:
Pete Batard 2016-08-08 13:46:50 +02:00
parent e7578bc12d
commit ab44cde7ac
4 changed files with 24 additions and 17 deletions

View file

@ -1328,6 +1328,10 @@ static BOOL BootCheck(void)
return FALSE;
}
// If the selected target doesn't include include BIOS, skip file downloads for GRUB/Syslinux
if (tt != TT_BIOS)
goto uefi_target;
if ((img_report.has_grub2) && (img_report.grub2_version[0] != 0) &&
(strcmp(img_report.grub2_version, GRUB2_PACKAGE_VERSION) != 0)) {
// We may have to download a different Grub2 version if we can find one
@ -1545,7 +1549,10 @@ static BOOL BootCheck(void)
return FALSE;
}
}
} else if (bt == BT_UEFI_NTFS) {
}
uefi_target:
if (bt == BT_UEFI_NTFS) {
fs = (int)ComboBox_GetItemData(hFileSystem, ComboBox_GetCurSel(hFileSystem));
if (fs != FS_NTFS) {
MessageBoxExU(hMainDialog, lmprintf(MSG_097, "UEFI:NTFS"), lmprintf(MSG_092), MB_OK|MB_ICONERROR|MB_IS_RTL, selected_langid);