Skip to content

Commit

Permalink
AssemblyLoader fix (#6)
Browse files Browse the repository at this point in the history
  • Loading branch information
aelurum committed Sep 8, 2023
1 parent e216abd commit 2e10e62
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion AssetStudioUtility/AssemblyLoader.cs
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,12 @@ public void Load(string path)

public TypeDefinition GetTypeDefinition(string assemblyName, string fullName)
{
if (moduleDic.TryGetValue(assemblyName, out var module))
moduleDic.TryGetValue(assemblyName, out var module);
if (module == null && !assemblyName.Contains(".dll"))
{
moduleDic.TryGetValue(assemblyName + ".dll", out module);
}
if (module != null)
{
var typeDef = module.GetType(fullName);
if (typeDef == null && assemblyName == "UnityEngine.dll")
Expand Down

0 comments on commit 2e10e62

Please sign in to comment.