mirror of
https://github.com/DarthAffe/StableDiffusion.NET.git
synced 2026-11-10 19:06:31 +00:00
Changed library-loading to use new backend-method for path generation
This commit is contained in:
1 parent
e767ec67c8
commit
ceef655ed5
1 file changed
+2
-1
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user