Skip to content

Commit bad463c

Browse files
committed
Potential fix for assemblyPaths using their manifest name
1 parent 87dcb2a commit bad463c

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

scripts/DllManipulator.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -55,11 +55,11 @@ internal static void Initialize(int unityMainThreadId, string assetsPath)
5555
else
5656
{
5757
var allAssemblies = AppDomain.CurrentDomain.GetAssemblies();
58-
assemblies = allAssemblies.Where(a => !a.IsDynamic && Options.assemblyPaths.Any(p => p == PathUtils.NormallizeSystemAssemblyPath(a.Location))).ToArray();
59-
var missingAssemblies = Options.assemblyPaths.Except(assemblies.Select(a => PathUtils.NormallizeSystemAssemblyPath(a.Location)));
60-
foreach (var assemblyPath in missingAssemblies)
58+
assemblies = allAssemblies.Where(a => !a.IsDynamic && Options.assemblyPaths.Any(p => p == a.ManifestModule.Name)).ToArray();
59+
var missingAssemblies = Options.assemblyPaths.Except(assemblies.Select(a => a.ManifestModule.Name));
60+
foreach (var assembly in missingAssemblies)
6161
{
62-
Debug.LogError($"Could not find assembly at path {assemblyPath}");
62+
Debug.LogError($"Could not find assembly: {assembly}");
6363
}
6464
}
6565

0 commit comments

Comments
 (0)