diff --git a/Il2CppInspector.Common/Outputs/JSONMetadata.cs b/Il2CppInspector.Common/Outputs/JSONMetadata.cs index 97e12fc2..8d5cdf60 100644 --- a/Il2CppInspector.Common/Outputs/JSONMetadata.cs +++ b/Il2CppInspector.Common/Outputs/JSONMetadata.cs @@ -73,6 +73,7 @@ private void writeMethods(IEnumerable methods) { writeObject(() => { writeTypedFunctionName(method.MethodCodeAddress, method.CppFnPtrType.ToSignatureString(), method.CppFnPtrType.Name); writeDotNetSignature(method.Method); + writeDeclaredTypeNamespace(method.Method); }); } } @@ -261,6 +262,10 @@ private void writeDotNetSignature(MethodBase method) { writer.WriteString("dotNetSignature", method.ToString().ToEscapedString()); } + private void writeDeclaredTypeNamespace(MethodBase method) { + writer.WriteString("declared_type_namespace", method.DeclaringType.Namespace); + } + private void writeDotNetTypeName(TypeInfo type) { writer.WriteString("dotNetType", type.CSharpName); }