mirror of
https://github.com/MirrorNetworking/Mirror.git
synced 2024-11-18 11:00:32 +00:00
Some cleanups, use explicit type, remove unused imports
This commit is contained in:
parent
310fae52df
commit
6c25b7aa37
@ -6,8 +6,6 @@
|
|||||||
using UnityEditor.Compilation;
|
using UnityEditor.Compilation;
|
||||||
using System;
|
using System;
|
||||||
using System.Linq;
|
using System.Linq;
|
||||||
using UnityEditor.Events;
|
|
||||||
using System.Reflection;
|
|
||||||
|
|
||||||
namespace Mirror.Weaver
|
namespace Mirror.Weaver
|
||||||
{
|
{
|
||||||
@ -79,15 +77,17 @@ static CompilationFinishedHook()
|
|||||||
// original Weaver.Program.Process function.)
|
// original Weaver.Program.Process function.)
|
||||||
static string[] GetExtraAssemblyPaths(string assemblyPath)
|
static string[] GetExtraAssemblyPaths(string assemblyPath)
|
||||||
{
|
{
|
||||||
var assemblies = CompilationPipeline.GetAssemblies();
|
Assembly[] assemblies = CompilationPipeline.GetAssemblies();
|
||||||
|
|
||||||
foreach (var assembly in assemblies)
|
foreach (Assembly assembly in assemblies)
|
||||||
{
|
{
|
||||||
if (assembly.outputPath == assemblyPath)
|
if (assembly.outputPath == assemblyPath)
|
||||||
{
|
{
|
||||||
return assembly.compiledAssemblyReferences.Select(Path.GetDirectoryName).ToArray();
|
return assembly.compiledAssemblyReferences.Select(Path.GetDirectoryName).ToArray();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Debug.LogWarning("Unable to find configuration for assembly " + assemblyPath);
|
||||||
return new string[] { };
|
return new string[] { };
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user