Skip to content

Commit dd8da7a

Browse files
Load unmanaged dlls from resources resource folder
1 parent dd11b00 commit dd8da7a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

api/AltV.Net.Host/ResourceAssemblyLoadContext.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,8 @@ protected override IntPtr LoadUnmanagedDll(string unmanagedDllName)
2727
{
2828
var libraryPath = resolver.ResolveUnmanagedDllToPath(unmanagedDllName) ??
2929
resolver.ResolveUnmanagedDllToPath(
30-
resourceName + Path.DirectorySeparatorChar + unmanagedDllName);
30+
"resources" + Path.DirectorySeparatorChar + resourceName +
31+
Path.DirectorySeparatorChar + unmanagedDllName);
3132

3233
return libraryPath != null ? LoadUnmanagedDllFromPath(libraryPath) : IntPtr.Zero;
3334
}

0 commit comments

Comments
 (0)