Skip to content

Commit

Permalink
Do not unstrip instance fields
Browse files Browse the repository at this point in the history
  • Loading branch information
ds5678 committed Sep 14, 2024
1 parent 1bc12f5 commit a967109
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Il2CppInterop.Generator/Passes/Pass80UnstripFields.cs
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@ public static void DoPass(RewriteGlobalContext context)
{
if (unityField.IsStatic && !unityField.HasConstant())
continue;// Non-constant static fields might require initialization, which we can't do.
if (unityField.IsInstance() && (unityType.IsReferenceType() || processedType.NewType.IsExplicitLayout))
continue;
if (unityField.IsInstance())
continue;// Inserting instance fields into Il2Cpp types will never be supported.

var processedField = processedType.TryGetFieldByUnityAssemblyField(unityField);
if (processedField != null) continue;
Expand Down

0 comments on commit a967109

Please sign in to comment.