[mbr] added USB selection MBR support in Rufus

* added mbr_rufus.h to ms-sys, and MBR selection to UI
* also simplified int 13 override, fixing potential breakage on concurrent ints
This commit is contained in:
Pete Batard 2012-03-21 01:59:03 +00:00
parent 1b7f88eb99
commit 7874f5ea5d
11 changed files with 107 additions and 20 deletions

View file

@ -464,7 +464,13 @@ static BOOL WriteMBR(HANDLE hPhysicalDrive)
if ((dt == DT_ISO) && ((fs == FS_FAT16) || (fs == FS_FAT32))) {
r = write_syslinux_mbr(&fake_fd);
} else {
r = write_win7_mbr(&fake_fd);
if (IsChecked(IDC_RUFUS_MBR)) {
uprintf("Using Rufus bootable USB selection MBR\n");
r = write_rufus_mbr(&fake_fd);
} else {
uprintf("Using Windows 7 MBR\n");
r = write_win7_mbr(&fake_fd);
}
}
out: