Skip to content

Commit

Permalink
Revert forcing Nullable struct to be non blittable
Browse files Browse the repository at this point in the history
  • Loading branch information
limoka committed Jun 5, 2023
1 parent 48a7cc5 commit de2c125
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions Il2CppInterop.Generator/Passes/Pass12ComputeTypeSpecifics.cs
Original file line number Diff line number Diff line change
Expand Up @@ -105,12 +105,6 @@ private static void ComputeSpecifics(TypeRewriteContext typeContext)
if (typeContext.ComputedTypeSpecifics != TypeRewriteContext.TypeSpecifics.NotComputed) return;
typeContext.ComputedTypeSpecifics = TypeRewriteContext.TypeSpecifics.Computing;

if (typeContext.OriginalType.FullName.Contains("System.Nullable"))
{
typeContext.ComputedTypeSpecifics = TypeRewriteContext.TypeSpecifics.NonBlittableStruct;
return;
}

foreach (var originalField in typeContext.OriginalType.Fields)
{
// Sometimes il2cpp metadata has invalid field offsets for some reason (https://github.com/SamboyCoding/Cpp2IL/issues/167)
Expand Down

0 comments on commit de2c125

Please sign in to comment.