mirror of
https://github.com/aelurum/AssetStudio.git
synced 2025-05-25 05:40:21 -04:00
Fix get class from divided UnityEngine.dll
This commit is contained in:
parent
bd2decdb8f
commit
7aa35b5b8c
@ -35,7 +35,19 @@ namespace AssetStudio
|
||||
{
|
||||
if (moduleDic.TryGetValue(assemblyName, out var module))
|
||||
{
|
||||
return module.GetType(fullName);
|
||||
var typeDef = module.GetType(fullName);
|
||||
if (typeDef == null && assemblyName == "UnityEngine.dll")
|
||||
{
|
||||
foreach (var pair in moduleDic)
|
||||
{
|
||||
typeDef = pair.Value.GetType(fullName);
|
||||
if (typeDef != null)
|
||||
{
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
return typeDef;
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user