mirror of
https://github.com/DarthAffe/StableDiffusion.NET.git
synced 2025-12-12 21:38:45 +00:00
Changed library-loading to use new backend-method for path generation
This commit is contained in:
parent
e767ec67c8
commit
ceef655ed5
@ -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);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user