-
-
Notifications
You must be signed in to change notification settings - Fork 19
Support decompiling jars without mappings #187
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
|
|
||
| // Extract jar | ||
| final Path extracted = this.downloader.baseDir().resolve(jarPath); | ||
| FileUtils.createDirectoriesSymlinkSafe(extracted.getParent()); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should be in it's own commit/PR as this is outside scope of this PR's purpose.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The extraction directory gets created as a result of downloading mappings
As this PR makes downloading mappings optional, we have to ensure that the target directory exists
I'll add a comment explaining this, but this is required for this PR to work
| .add(Transformers.fixLvNames()); | ||
| // apply mappings if available | ||
| mappings.ifPresent(file -> renamerBuilder | ||
| .add(Transformer.renamerFactory(file, true))); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This one transformer is doing the remapping but all other transformers are related to the de-obfuscation process too. When processing a non obfuscated version we should skip all transformations except access wideners, which are handled elsewhere anyway.
Actually, we could probably release the current state of VG as 0.2.1, and remove FART and all the de-obfuscation process in 0.3.0.
Allows decompiling jars without mappings, tested with injecting 25w45a_unobfuscated.json