mirror of
https://github.com/MirrorNetworking/Mirror.git
synced 2024-11-18 02:50:32 +00:00
CompilationHookFinished: syntax improved
This commit is contained in:
parent
d87a606bf3
commit
344d717adc
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user