[iso] improve fallback for dual UDF+ISO9660 images

* Also add private filtering of LM90X USB⟷SSD devices
This commit is contained in:
Pete Batard 2019-08-28 10:59:44 +01:00
parent 94b28390b6
commit 798029237f
No known key found for this signature in database
GPG key ID: 38E0CF5E69EDD671
4 changed files with 13 additions and 9 deletions

View file

@ -46,7 +46,7 @@
extern StrArray DriveId, DriveName, DriveLabel, DriveHub;
extern uint32_t DrivePort[MAX_DRIVES];
extern BOOL enable_HDDs, use_fake_units, enable_vmdk, usb_debug, list_non_usb_removable_drives;
extern BOOL enable_HDDs, use_fake_units, enable_vmdk, usb_debug, list_non_usb_removable_drives, is_me;
/*
* Get the VID, PID and current device speed
@ -781,6 +781,9 @@ BOOL GetDevices(DWORD devnum)
}
static_strcpy(str, "????:????"); // Couldn't figure VID:PID
} else {
// because I don't want to end up erasing this specific device of mine by accident
if (is_me && (props.vid == 0x0525) && (props.pid == 0x622b))
continue;
static_sprintf(str, "%04X:%04X", props.vid, props.pid);
}
if (props.speed >= USB_SPEED_MAX)