CompilationHookFinished: syntax improved

This commit is contained in:
vis2k 2018-08-25 22:30:19 +02:00
parent d87a606bf3
commit 344d717adc

View File

@ -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);