Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Recognize Internal SD Card Reader on MacOS #618

Merged
merged 1 commit into from
May 15, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading