Skip to content

Commit

Permalink
Recognize Internal SD Card Reader on MacOS (#618)
Browse files Browse the repository at this point in the history
  • Loading branch information
matthewperiut committed May 15, 2023
1 parent 9227a95 commit 3951b5d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/app/macdrivearbiter.mm
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ static void OnDiskAppeared(DADiskRef disk, void *__attribute__((__unused__)) ctx

if (isWhole != nil && [isWhole integerValue] != 0) {
if ((isInternal != nil && [isInternal integerValue] == 0 && isRemovable != nil && [isRemovable integerValue] != 0)
|| (deviceProtocol != nil && [deviceProtocol isEqual:@"USB"])) {
|| (deviceProtocol != nil && ([deviceProtocol isEqual:@"USB"] || [deviceProtocol isEqual:@"Secure Digital"]))) {
bool isRestoreable = (lastS1 || lastS2) & [bsdName isEqualToString:lastPrefix];
onAdded([bsdName UTF8String], [diskVendor UTF8String], [diskModel UTF8String], [diskSize integerValue], isRestoreable);
}
Expand Down

0 comments on commit 3951b5d

Please sign in to comment.