mirror of
https://github.com/MirrorNetworking/Mirror.git
synced 2024-11-18 02:50:32 +00:00
comment
This commit is contained in:
parent
cdc58fdba9
commit
b0e60a8e3d
@ -31,13 +31,13 @@ public static bool Process(AssemblyDefinition CurrentAssembly, IAssemblyResolver
|
|||||||
return ProcessAssemblyClasses(CurrentAssembly, CurrentAssembly, writers, readers, ref WeavingFailed);
|
return ProcessAssemblyClasses(CurrentAssembly, CurrentAssembly, writers, readers, ref WeavingFailed);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// look for assembly instead of relying on CurrentAssembly.MainModule.
|
||||||
|
// fixes: https://github.com/MirrorNetworking/Mirror/issues/3816
|
||||||
static List<AssemblyDefinition> FindProcessTargetAssemblies(AssemblyDefinition assembly, IAssemblyResolver resolver)
|
static List<AssemblyDefinition> FindProcessTargetAssemblies(AssemblyDefinition assembly, IAssemblyResolver resolver)
|
||||||
{
|
{
|
||||||
HashSet<string> processedAssemblies = new HashSet<string>();
|
HashSet<string> processedAssemblies = new HashSet<string>();
|
||||||
List<AssemblyDefinition> assemblies = new List<AssemblyDefinition>();
|
List<AssemblyDefinition> assemblies = new List<AssemblyDefinition>();
|
||||||
|
|
||||||
ProcessAssembly(assembly);
|
ProcessAssembly(assembly);
|
||||||
|
|
||||||
return assemblies;
|
return assemblies;
|
||||||
|
|
||||||
void ProcessAssembly(AssemblyDefinition current)
|
void ProcessAssembly(AssemblyDefinition current)
|
||||||
|
Loading…
Reference in New Issue
Block a user