From be2dc6bbe1d08968a3b2fe9a4f8d0b73fd5a4bac Mon Sep 17 00:00:00 2001 From: Diphome Date: Sat, 12 Sep 2026 01:11:28 +0200 Subject: [PATCH] il2cpp/ghidra: force Jython runtime for il2cpp_header_to_ghidra.py Ghidra 11.3+ defaults scripts to PyGhidra (Python 3); this helper is only Jython 2.7-compatible, so mark it '# @runtime Jython' so Ghidra runs it under Jython instead of failing under PyGhidra. Co-Authored-By: Claude Opus 4.8 --- tools/ghidra/il2cpp_header_to_ghidra.py | 1 + 1 file changed, 1 insertion(+) diff --git a/tools/ghidra/il2cpp_header_to_ghidra.py b/tools/ghidra/il2cpp_header_to_ghidra.py index d4e1d72..e49e62d 100644 --- a/tools/ghidra/il2cpp_header_to_ghidra.py +++ b/tools/ghidra/il2cpp_header_to_ghidra.py @@ -1,4 +1,5 @@ # -*- coding: utf-8 -*- +# @runtime Jython # Based on Il2CppDumper il2cpp_header_to_ghidra.py (https://github.com/Perfare/Il2CppDumper), MIT License, Copyright (c) 2016 Perfare. # Standalone helper: UnityRift already writes il2cpp_ghidra.h next to il2cpp.h, so this is only needed # if you want to re-run the transform yourself.