We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents ede5361 + 1ca8b65 commit e6ea8d1Copy full SHA for e6ea8d1
source/standardpaths.d
@@ -909,9 +909,15 @@ version(Windows) {
909
{
910
enum carbonPath = "CoreServices.framework/Versions/A/CoreServices\0";
911
912
+ // This one still work as of macOS 15.1, it was used in Dplug for a good while
913
+ enum carbonPath2 = "/System/Library/Frameworks/CoreServices.framework/CoreServices\0";
914
+
915
import core.sys.posix.dlfcn;
916
917
void* handle = dlopen(carbonPath.ptr, RTLD_NOW | RTLD_LOCAL);
918
+ if (!handle)
919
+ handle = dlopen(carbonPath2.ptr, RTLD_NOW | RTLD_LOCAL);
920
921
if (handle) {
922
ptrFSFindFolder = cast(typeof(ptrFSFindFolder))dlsym(handle, "FSFindFolder");
923
ptrFSRefMakePath = cast(typeof(ptrFSRefMakePath))dlsym(handle, "FSRefMakePath");
0 commit comments