UnityEngineDLLDirectoryName -> UnityEngineDllDirectoryName

This commit is contained in:
Paul Pacheco 2020-03-24 15:48:01 -05:00
parent e83daa8c5c
commit f74abc8f86
2 changed files with 2 additions and 2 deletions

View File

@ -10,7 +10,7 @@ class Helpers
{ {
// This code is taken from SerializationWeaver // This code is taken from SerializationWeaver
public static string UnityEngineDLLDirectoryName() public static string UnityEngineDllDirectoryName()
{ {
string directoryName = Path.GetDirectoryName(Assembly.GetExecutingAssembly().CodeBase); string directoryName = Path.GetDirectoryName(Assembly.GetExecutingAssembly().CodeBase);
return directoryName?.Replace(@"file:\", ""); return directoryName?.Replace(@"file:\", "");

View File

@ -467,7 +467,7 @@ static bool Weave(string assName, IEnumerable<string> dependencies, string unity
using (CurrentAssembly = AssemblyDefinition.ReadAssembly(assName, new ReaderParameters { ReadWrite = true, ReadSymbols = true, AssemblyResolver = asmResolver })) using (CurrentAssembly = AssemblyDefinition.ReadAssembly(assName, new ReaderParameters { ReadWrite = true, ReadSymbols = true, AssemblyResolver = asmResolver }))
{ {
asmResolver.AddSearchDirectory(Path.GetDirectoryName(assName)); asmResolver.AddSearchDirectory(Path.GetDirectoryName(assName));
asmResolver.AddSearchDirectory(Helpers.UnityEngineDLLDirectoryName()); asmResolver.AddSearchDirectory(Helpers.UnityEngineDllDirectoryName());
asmResolver.AddSearchDirectory(Path.GetDirectoryName(unityEngineDLLPath)); asmResolver.AddSearchDirectory(Path.GetDirectoryName(unityEngineDLLPath));
asmResolver.AddSearchDirectory(Path.GetDirectoryName(mirrorNetDLLPath)); asmResolver.AddSearchDirectory(Path.GetDirectoryName(mirrorNetDLLPath));
if (dependencies != null) if (dependencies != null)