Skip to content

reobf: add string remap option#235

Open
M41G wants to merge 1 commit into
MCPHackers:mainfrom
M41G:reobf-string-remap
Open

reobf: add string remap option#235
M41G wants to merge 1 commit into
MCPHackers:mainfrom
M41G:reobf-string-remap

Conversation

@M41G
Copy link
Copy Markdown

@M41G M41G commented May 13, 2026

Adds a stringremap option for selected packages during reobfuscation.

I use this for ASM bytecode injection code that lives outside the Minecraft source classes and does not modify those classes directly. That code still carries MCP names in string literals, such as transformer owner/name/desc values or field reflection names. Normal reobfuscation remaps bytecode references, but those strings are left alone, so the transformer can stop matching once the jar is obfuscated.

This could also help other projects that keep patching logic in separate transformer packages instead of editing the decompiled Minecraft sources. It lets those packages opt in by prefix, keeps the default MCP workflow unchanged, and avoids broad string rewriting across unrelated classes.

Adds an opt-in package list for rewriting MCP strings during reobfuscation.

Handles transformer owner/name/desc strings and field reflection names before normal mappings are applied.
@M41G M41G force-pushed the reobf-string-remap branch from 33d168b to 4dc472a Compare May 13, 2026 21:11
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