mirror of
https://github.com/godotengine/godot.git
synced 2025-10-19 16:03:29 +00:00
Change macos.permission.RECORD_SCREEN
version check from 10.15 to 11.0.
This commit is contained in:
parent
1f7630f1bf
commit
1c59038555
1 changed files with 2 additions and 2 deletions
|
@ -104,7 +104,7 @@ bool OS_MacOS::is_sandboxed() const {
|
|||
}
|
||||
|
||||
bool OS_MacOS::request_permission(const String &p_name) {
|
||||
if (@available(macOS 10.15, *)) {
|
||||
if (@available(macOS 11.0, *)) {
|
||||
if (p_name == "macos.permission.RECORD_SCREEN") {
|
||||
if (CGPreflightScreenCaptureAccess()) {
|
||||
return true;
|
||||
|
@ -124,7 +124,7 @@ bool OS_MacOS::request_permission(const String &p_name) {
|
|||
Vector<String> OS_MacOS::get_granted_permissions() const {
|
||||
Vector<String> ret;
|
||||
|
||||
if (@available(macOS 10.15, *)) {
|
||||
if (@available(macOS 11.0, *)) {
|
||||
if (CGPreflightScreenCaptureAccess()) {
|
||||
ret.push_back("macos.permission.RECORD_SCREEN");
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue