From 787902987694eabd8a6c28e9f6d6260815490aa5 Mon Sep 17 00:00:00 2001 From: harry-cpp Date: Thu, 26 Mar 2020 17:10:20 +0100 Subject: [PATCH] Automatically check the usr folder on macOS --- Source/Libs/Shared/GLibrary.cs | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Source/Libs/Shared/GLibrary.cs b/Source/Libs/Shared/GLibrary.cs index 8dc9615ca..788ffa08a 100644 --- a/Source/Libs/Shared/GLibrary.cs +++ b/Source/Libs/Shared/GLibrary.cs @@ -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]);