This commit is contained in:
mischa 2024-10-07 11:27:48 +02:00
parent cdc58fdba9
commit b0e60a8e3d

View File

@ -31,13 +31,13 @@ public static bool Process(AssemblyDefinition CurrentAssembly, IAssemblyResolver
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)
{
HashSet<string> processedAssemblies = new HashSet<string>();
List<AssemblyDefinition> assemblies = new List<AssemblyDefinition>();
ProcessAssembly(assembly);
return assemblies;
void ProcessAssembly(AssemblyDefinition current)