fixed non-mac issues

This commit is contained in:
itsmattkc
2019-01-22 22:52:41 +11:00
parent 8977acde31
commit 4dfd69f363
5 changed files with 12 additions and 10 deletions
+2
View File
@@ -22,6 +22,7 @@ QStringList LibFilter() {
#endif
}
#ifdef __APPLE__
CFBundleRef BundleLoad(const QString &filename) {
CFStringRef bundle_str = CFStringCreateWithCString(NULL, filename.toUtf8(), kCFStringEncodingUTF8);
CFURLRef bundle_url = CFURLCreateWithFileSystemPath(kCFAllocatorDefault, bundle_str, kCFURLPOSIXPathStyle, true);
@@ -40,3 +41,4 @@ void BundleClose(CFBundleRef bundle) {
CFBundleUnloadExecutable(bundle);
CFRelease(bundle);
}
#endif