You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-07 12:30:27 +00:00
C#: Add missing get_data when calling CFStringCreateWithCString in macos_utils
This commit is contained in:
committed by
Rémi Verschelde
parent
0a30831bed
commit
e202851e20
@@ -38,7 +38,7 @@
|
|||||||
#import <CoreServices/CoreServices.h>
|
#import <CoreServices/CoreServices.h>
|
||||||
|
|
||||||
bool macos_is_app_bundle_installed(const String &p_bundle_id) {
|
bool macos_is_app_bundle_installed(const String &p_bundle_id) {
|
||||||
CFStringRef bundle_id = CFStringCreateWithCString(nullptr, p_bundle_id.utf8(), kCFStringEncodingUTF8);
|
CFStringRef bundle_id = CFStringCreateWithCString(nullptr, p_bundle_id.utf8().get_data(), kCFStringEncodingUTF8);
|
||||||
CFArrayRef result = LSCopyApplicationURLsForBundleIdentifier(bundle_id, nullptr);
|
CFArrayRef result = LSCopyApplicationURLsForBundleIdentifier(bundle_id, nullptr);
|
||||||
CFRelease(bundle_id);
|
CFRelease(bundle_id);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user