mirror of
https://github.com/Ryujinx/GtkSharp.git
synced 2024-12-23 00:05:35 +00:00
Merge pull request #344 from spouliot/apple-silicon-homebrew-path
Fix loading native libraries on macOS (arm64) using homebrew installed gtk+3
This commit is contained in:
commit
451755439e
|
@ -73,6 +73,9 @@ class GLibrary
|
||||||
|
|
||||||
if (ret == IntPtr.Zero) {
|
if (ret == IntPtr.Zero) {
|
||||||
ret = FuncLoader.LoadLibrary("/usr/local/lib/" + _libraryDefinitions[library][2]);
|
ret = FuncLoader.LoadLibrary("/usr/local/lib/" + _libraryDefinitions[library][2]);
|
||||||
|
if (ret == IntPtr.Zero) {
|
||||||
|
ret = FuncLoader.LoadLibrary("/opt/homebrew/lib/" + _libraryDefinitions[library][2]);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
} else
|
} else
|
||||||
ret = FuncLoader.LoadLibrary(_libraryDefinitions[library][1]);
|
ret = FuncLoader.LoadLibrary(_libraryDefinitions[library][1]);
|
||||||
|
|
Loading…
Reference in a new issue