Automatically check the usr folder on macOS

This commit is contained in:
harry-cpp 2020-03-26 17:10:20 +01:00
parent 949ee6771c
commit 7879029876

View file

@ -46,7 +46,14 @@ class GLibrary
}
}
else if (FuncLoader.IsOSX)
{
ret = FuncLoader.LoadLibrary(_libraryDefinitions[library][2]);
if (ret == IntPtr.Zero)
{
ret = FuncLoader.LoadLibrary("/usr/local/lib/" + _libraryDefinitions[library][2]);
}
}
else
ret = FuncLoader.LoadLibrary(_libraryDefinitions[library][1]);