Skip to content

Commit

Permalink
lessened issue in il2cppinterop where it would break for objects
Browse files Browse the repository at this point in the history
  • Loading branch information
CamelCaseName committed Jul 17, 2023
1 parent 444c2f5 commit 1883ab2
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Il2CppInterop.Generator/Contexts/AssemblyRewriteContext.cs
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,8 @@ public TypeReference RewriteTypeRef(TypeReference? typeRef)
{
return Imports.Il2CppObjectBase;
}
if(originalTypeDef == null)
return Imports.Il2CppObjectBase;
var targetAssembly = GlobalContext.GetNewAssemblyForOriginal(originalTypeDef.Module.Assembly);
var target = targetAssembly.GetContextForOriginalType(originalTypeDef).NewType;

Expand Down

0 comments on commit 1883ab2

Please sign in to comment.