From 7a621b40c6ecdbcf5732834e1dec6acca9291bc2 Mon Sep 17 00:00:00 2001 From: LukeFZ <17146677+LukeFZ@users.noreply.github.com> Date: Fri, 26 Sep 2025 00:30:59 +0200 Subject: [PATCH] fix support for properties without methods --- Il2CppInspector.Common/Outputs/AssemblyShims.cs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Il2CppInspector.Common/Outputs/AssemblyShims.cs b/Il2CppInspector.Common/Outputs/AssemblyShims.cs index 3446761..a446ad0 100644 --- a/Il2CppInspector.Common/Outputs/AssemblyShims.cs +++ b/Il2CppInspector.Common/Outputs/AssemblyShims.cs @@ -298,6 +298,10 @@ namespace Il2CppInspector.Outputs private PropertyDef AddProperty(ModuleDef module, TypeDef mType, PropertyInfo prop) { PropertySig s; + // Example: ZstdSharp MEM_32Bit which gets inlined using weaving and all accessors removed + if (prop.GetMethod == null && prop.SetMethod == null) + return null; + // Static or instance if (prop.GetMethod?.IsStatic ?? prop.SetMethod.IsStatic) s = PropertySig.CreateStatic(GetTypeSig(module, prop.PropertyType));