Skip to content

il2cpp/ghidra: force Jython runtime for il2cpp_header_to_ghidra.py - #14

Closed
Diphome wants to merge 1 commit into
masterfrom
il2cpp-re-helpers
Closed

Diphome wants to merge 1 commit into
masterfrom
il2cpp-re-helpers

Conversation

@Diphome

@Diphome Diphome commented Sep 11, 2026

Copy link
Copy Markdown
Owner

What

Adds # @runtime Jython to tools/ghidra/il2cpp_header_to_ghidra.py (the source that's embedded into UnityRiftUtility and shipped in the Ghidra package).

Why

Ghidra 11.3+ defaults scripts to the PyGhidra (Python 3) interpreter. This helper is only Jython 2.7-compatible, so without the directive Ghidra may try to run it under PyGhidra and fail. The # @runtime Jython metadata directive pins it to the Jython interpreter.

Follow-up to #13 (merged).

🤖 Generated with Claude Code

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 <noreply@anthropic.com>
@Diphome

Diphome commented Sep 12, 2026

Copy link
Copy Markdown
Owner Author

Closing: this touches a Ghidra helper script that's part of the reverse layer removed from public UnityRift (#18) and maintained separately. Preserved in git history.

@Diphome Diphome closed this Sep 12, 2026
@Diphome
Diphome deleted the il2cpp-re-helpers branch September 14, 2026 09:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant