From 344d717adc921580d86d7c66323fea194c69fed6 Mon Sep 17 00:00:00 2001 From: vis2k Date: Sat, 25 Aug 2018 22:30:19 +0200 Subject: [PATCH] CompilationHookFinished: syntax improved --- Mirror/Weaver/CompilationFinishedHook.cs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/Mirror/Weaver/CompilationFinishedHook.cs b/Mirror/Weaver/CompilationFinishedHook.cs index 14a6e13ea..b7c6b9ff6 100644 --- a/Mirror/Weaver/CompilationFinishedHook.cs +++ b/Mirror/Weaver/CompilationFinishedHook.cs @@ -33,9 +33,6 @@ static CompilationFinishedHook() string outputDirectory = Path.GetDirectoryName(assemblyPath); //Debug.Log("outputDirectory=" + outputDirectory); - // unity calls it for Library/ScriptAssemblies/Assembly-CSharp-Editor.dll too, but we don't want to (and can't) weave this one - bool buildingForEditor = assemblyPath.EndsWith("Editor.dll"); - string mirrorRuntimeDll = FindMirrorRuntime(); if (!File.Exists(mirrorRuntimeDll)) @@ -50,6 +47,8 @@ static CompilationFinishedHook() return; } + // unity calls it for Library/ScriptAssemblies/Assembly-CSharp-Editor.dll too, but we don't want to (and can't) weave this one + bool buildingForEditor = assemblyPath.EndsWith("Editor.dll"); if (!buildingForEditor) { Console.WriteLine("Weaving: " + assemblyPath);