From f74abc8f86db688dcd4322204e389f329c258c78 Mon Sep 17 00:00:00 2001 From: Paul Pacheco Date: Tue, 24 Mar 2020 15:48:01 -0500 Subject: [PATCH] UnityEngineDLLDirectoryName -> UnityEngineDllDirectoryName --- Assets/Mirror/Editor/Weaver/Helpers.cs | 2 +- Assets/Mirror/Editor/Weaver/Weaver.cs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Assets/Mirror/Editor/Weaver/Helpers.cs b/Assets/Mirror/Editor/Weaver/Helpers.cs index f52d5eae7..acae9c605 100644 --- a/Assets/Mirror/Editor/Weaver/Helpers.cs +++ b/Assets/Mirror/Editor/Weaver/Helpers.cs @@ -10,7 +10,7 @@ class Helpers { // This code is taken from SerializationWeaver - public static string UnityEngineDLLDirectoryName() + public static string UnityEngineDllDirectoryName() { string directoryName = Path.GetDirectoryName(Assembly.GetExecutingAssembly().CodeBase); return directoryName?.Replace(@"file:\", ""); diff --git a/Assets/Mirror/Editor/Weaver/Weaver.cs b/Assets/Mirror/Editor/Weaver/Weaver.cs index 05aae757c..ce7a38e81 100644 --- a/Assets/Mirror/Editor/Weaver/Weaver.cs +++ b/Assets/Mirror/Editor/Weaver/Weaver.cs @@ -467,7 +467,7 @@ static bool Weave(string assName, IEnumerable dependencies, string unity using (CurrentAssembly = AssemblyDefinition.ReadAssembly(assName, new ReaderParameters { ReadWrite = true, ReadSymbols = true, AssemblyResolver = asmResolver })) { asmResolver.AddSearchDirectory(Path.GetDirectoryName(assName)); - asmResolver.AddSearchDirectory(Helpers.UnityEngineDLLDirectoryName()); + asmResolver.AddSearchDirectory(Helpers.UnityEngineDllDirectoryName()); asmResolver.AddSearchDirectory(Path.GetDirectoryName(unityEngineDLLPath)); asmResolver.AddSearchDirectory(Path.GetDirectoryName(mirrorNetDLLPath)); if (dependencies != null)