mirror of
https://github.com/Ryujinx/GtkSharp.git
synced 2024-12-23 06:05:35 +00:00
Automatically check the usr folder on macOS
This commit is contained in:
parent
949ee6771c
commit
7879029876
|
@ -46,7 +46,14 @@ class GLibrary
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else if (FuncLoader.IsOSX)
|
else if (FuncLoader.IsOSX)
|
||||||
|
{
|
||||||
ret = FuncLoader.LoadLibrary(_libraryDefinitions[library][2]);
|
ret = FuncLoader.LoadLibrary(_libraryDefinitions[library][2]);
|
||||||
|
|
||||||
|
if (ret == IntPtr.Zero)
|
||||||
|
{
|
||||||
|
ret = FuncLoader.LoadLibrary("/usr/local/lib/" + _libraryDefinitions[library][2]);
|
||||||
|
}
|
||||||
|
}
|
||||||
else
|
else
|
||||||
ret = FuncLoader.LoadLibrary(_libraryDefinitions[library][1]);
|
ret = FuncLoader.LoadLibrary(_libraryDefinitions[library][1]);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue