Skip to content

Conversation

@TheLounger
Copy link
Contributor

Description

This PR adds a core config option to the IL2CPP section. The option makes it possible to pass a renaming RegEx to Unhollower, which will then rename any type or member that matches the RegEx to a name that's based on the type or member's signature.

Motivation and Context

Using a renaming RegEx in Unhollower should help with getting more stable type and member names, minimizing plugins breaking when the game updates.

How Has This Been Tested?

Tested on Windows 10 and Linux with Proton-GE.
Ran BepInEx with a RegEx string specified that is suitable for the game's obfuscated names (^[A-Z]{11}$ in my case), Unhollower ran as usual but the output now has "de-obfuscated" names.
Created a plugin with some Harmony patches that specifically call those de-obfuscated names, they work fine in-game.

Screenshots

SweetNames

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)

Checklist

  • My code follows the code style of this project.
  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.

@ghorsington ghorsington merged commit 9c2b17f into BepInEx:master Jul 13, 2022
ghorsington added a commit that referenced this pull request Jul 21, 2022
ghorsington added a commit that referenced this pull request Aug 7, 2022
ghorsington added a commit that referenced this pull request Aug 14, 2022
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.

2 participants