mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-10-01 14:58:14 +00:00
iOS: Don't fall off the end of checkPermission
The switch covered every AVAuthorizationStatus known today, so an unhandled one would return garbage from a non-void function. Treat unknown statuses as denied. Co-Authored-By: Claude Opus 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01JZk5y4Fzw811WJoNWZb8Sc
This commit is contained in:
1 parent
bc2a5c7f3b
commit
8de3d9b8a0
1 file changed
+4
@@ -53,6 +53,10 @@ NSString *getSelectedCamera() {
|
||||
case AVAuthorizationStatusAuthorized: {
|
||||
return 0;
|
||||
}
|
||||
default: {
|
||||
NSLog(@"unknown camera authorization status %ld, treating as denied", (long)status);
|
||||
return 1;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user