Fix assembly shim output for older Unity versions due to non-explicit class layouts
This commit is contained in:
@@ -185,7 +185,7 @@ namespace Il2CppInspector.Outputs
|
|||||||
Attributes = (TypeAttributes)type.Attributes
|
Attributes = (TypeAttributes)type.Attributes
|
||||||
};
|
};
|
||||||
|
|
||||||
if (mType.IsExplicitLayout)
|
if (mType.IsExplicitLayout || mType.IsSequentialLayout)
|
||||||
mType.ClassLayout = new ClassLayoutUser(1, (uint)type.Sizes.nativeSize);
|
mType.ClassLayout = new ClassLayoutUser(1, (uint)type.Sizes.nativeSize);
|
||||||
|
|
||||||
// Add nested types
|
// Add nested types
|
||||||
|
|||||||
Reference in New Issue
Block a user