Changed library-loading to use new backend-method for path generation

This commit is contained in:
Darth Affe 2024-03-22 23:43:17 +01:00
parent e767ec67c8
commit ceef655ed5

View File

@ -42,7 +42,8 @@ internal static partial class Native
foreach (IBackend backend in Backends.ActiveBackends.OrderByDescending(x => x.Priority))
{
string path = Path.Combine("runtimes", os, "native", backend.PathPart, $"{libPrefix}{LIB_NAME}{fileExtension}");
string path = Backends.GetFullPath(os, backend.PathPart, $"{libPrefix}{LIB_NAME}{fileExtension}");
if (string.IsNullOrWhiteSpace(path)) continue;
string fullPath = TryFindPath(path);
nint result = TryLoad(fullPath);