moved to vestige

This commit is contained in:
itsmattkc
2019-01-22 03:45:31 -08:00
parent 86464b76e4
commit 8977acde31
8 changed files with 463 additions and 29 deletions
+19
View File
@@ -21,3 +21,22 @@ QStringList LibFilter() {
return {"*.so", "*.dylib"};
#endif
}
CFBundleRef BundleLoad(const QString &filename) {
CFStringRef bundle_str = CFStringCreateWithCString(NULL, filename.toUtf8(), kCFStringEncodingUTF8);
CFURLRef bundle_url = CFURLCreateWithFileSystemPath(kCFAllocatorDefault, bundle_str, kCFURLPOSIXPathStyle, true);
CFBundleRef bundle = NULL;
if (bundle_url != NULL) {
bundle = CFBundleCreate(kCFAllocatorDefault, bundle_url);
} else {
qCritical() << "Failed to create VST URL";
}
CFRelease(bundle_url);
CFRelease(bundle_str);
return bundle;
}
void BundleClose(CFBundleRef bundle) {
CFBundleUnloadExecutable(bundle);
CFRelease(bundle);
}