From 64860d9c033c448173cd87102456244f4dc8b57d Mon Sep 17 00:00:00 2001 From: Katy Coe Date: Tue, 4 Aug 2020 00:50:30 +0200 Subject: [PATCH] JSON: Replace array of pointer *[x] with * * in Il2CppCodeGenModule (Ghidra fix) --- Il2CppInspector.Common/Outputs/JSONMetadata.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Il2CppInspector.Common/Outputs/JSONMetadata.cs b/Il2CppInspector.Common/Outputs/JSONMetadata.cs index c4f306f..2d5b1e7 100644 --- a/Il2CppInspector.Common/Outputs/JSONMetadata.cs +++ b/Il2CppInspector.Common/Outputs/JSONMetadata.cs @@ -149,7 +149,8 @@ namespace Il2CppInspector.Outputs if (model.Package.Version >= 24.2) writeObject(() => writeTypedName(binary.CodeRegistration.pcodeGenModules, - $"struct Il2CppCodeGenModule *[{binary.CodeRegistration.codeGenModulesCount}]", "g_CodeGenModules")); + // Ghidra doesn't like *[x] or ** so use * * instead + $"struct Il2CppCodeGenModule * *", "g_CodeGenModules")); foreach (var ptr in binary.CodeGenModulePointers) writeObject(() => writeTypedName(ptr.Value, "struct Il2CppCodeGenModule", $"g_{ptr.Key.Replace(".dll", "")}CodeGenModule"));