summaryrefslogtreecommitdiff
path: root/enigma/src/main/java (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Fix resolveEquivalentMethods sometimes running into infinite recursionGravatar Marco Rebhan2021-09-231-9/+14
|
* Improve record class detection (#428)Gravatar modmuss502021-09-164-9/+10
| | | | | Also generate a method mapping for the record entry, does not support the case of the method having a diffrent name from the field. If there is a component this is remapped via the field mapping.
* Fix reading non-deobfuscated fields that have javadoc attached as obfuscatedGravatar Marco Rebhan2021-07-091-1/+0
|
* Entry Changes (#364)Gravatar 2xsaiko2021-07-0829-256/+486
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Initial refactor: Allow EntryMapping to have null targetName, add EntryChange in favor of entry changing methods in GuiController * Fix resetting name not actually removing it, and renaming a class causing name collisions with itself Closes #246. * Use name proposer for setting default deobf name Closes #314 * Make network protocol use EntryChange directly * Handle writing other data correctly when the deobf name is null * b * Add some new abstraction stuff * Use pattern matching instanceof * Move classes out of newabstraction package * Make EntryChange final * Regenerate equals and hashCode * Convert EntryMapping to record * Make TristateChange final * Safety guard null accessModifier initialization
* Update cfr and fixes a few related issues (#414)Gravatar liach2021-07-033-29/+50
| | | | | | | | | | | | | | | | | | * Update cfr and fixes a few related issues fixes #368 context for token references, missing some field and method references * Prevent crash when cfr fails to decompile a lambda and creates a fallback Signed-off-by: liach <liach@users.noreply.github.com> * Fix issue with parameters incorrectly spilling into other methods Signed-off-by: liach <liach@users.noreply.github.com> * try improve performance of cfr source Co-authored-by: liach <liach@users.noreply.github.com>
* Work around SourceIndexMethodVisitor tripping over missingGravatar Player2021-06-221-17/+19
| | | | MEMBER_REFERENCE data for invokedynamic, print decompilation exceptions
* Structure panel options (#400)Gravatar YanisBft2021-06-152-15/+98
| | | | | | | | | | | | | | | * Structure panel options * changes * always show inner classes in the tree * workaround for toString() and similar * show constructor methods depending on the class obfuscation * use ListCellRenderer instead of toString * list cell renderer
* Fix some exceptions getting silently discarded (e.g. see #398)Gravatar Marco Rebhan2021-06-081-19/+9
|
* Cleanup with Java 16 (#394)Gravatar YanisBft2021-05-2329-132/+82
| | | | | * Cleanup using Java 16 * use Stream.toList()
* This does nothingGravatar Marco Rebhan2021-05-151-3/+0
|
* Don't skip hidden files since they are explicitly listed in the parametersGravatar Marco Rebhan2021-05-151-3/+0
|
* Add EnigmaMappingsReader.readFiles (#381)Gravatar Juuxel2021-05-151-12/+43
|
* Simplify toString() implementationsGravatar Yanis482021-04-074-9/+5
|
* Reorganize entry namesGravatar Yanis482021-04-073-10/+95
|
* Merge pull request #361 from modmuss50/recordsGravatar 2xsaiko2021-03-255-4/+138
|\ | | | | Record support
| * WIP full record supportGravatar modmuss502021-03-196-4/+142
| |
* | Merge pull request #363 from Juuxel/svg-iconsGravatar 2xsaiko2021-03-211-0/+4
|\ \ | | | | | | Switch to SVG icons
| * | Switch to SVG icons instead of PNGs and add icon for recordsGravatar Juuxel2021-03-201-0/+4
| |/ | | | | | | | | | | | | | | The PNG icons scaled horribly on FlatLaf but these ones look smooth on any scaling level. Note: even though the icons are FlatSVGIcons from FlatLaf, they work properly on all LaFs if the FlatLaf UI scale property is set to the correct value (which LookAndFeel.setGlobalLAF does).
* / Less strict JRE check (#362)Gravatar Geolykt2021-03-201-1/+1
|/ | | | | Resolves #353 The issue here lies in that this changes the behaviour of the code by quite a bit, so alternatively the irrelevant javax check could be dropped, which would optimize the code only slightly
* Icons everywhereGravatar Yanis482021-03-174-1/+14
|
* Merge pull request #336 from liachmodded/cfr-impGravatar 2xsaiko2021-01-259-309/+249
|\ | | | | Make cfr much easier to use
| * Make cfr much easier to useGravatar liach2021-01-239-309/+249
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Now it can display javadoc, remove imports, highlight local variables Depends on FabricMC/cfr#2 Signed-off-by: liach <liach@users.noreply.github.com> More cfr cleanup. Cfr looks good now Remove outdated note Allows requesting javadoc on initial source creation. Currently both cfr and procyon would be more efficient this way. Signed-off-by: liach <liach@users.noreply.github.com> Now renders inner classes properly (and with updated cfr now renders lambda params) Signed-off-by: liach <liach@users.noreply.github.com> Tweaks to handle purely generic fields and cfr problem classes like ClientEntityManager.Listener Signed-off-by: liach <liach@users.noreply.github.com>
* | Merge pull request #338 from liachmodded/fix/def-browseGravatar 2xsaiko2021-01-242-25/+35
|\ \ | | | | | | Fixes open declaration not opening declaration
| * | Fixes open declaration not opening declarationGravatar liach2021-01-232-25/+35
| |/ | | | | | | Signed-off-by: liach <liach@users.noreply.github.com>
* | Merge pull request #340 from Juuxel/better-iconsGravatar 2xsaiko2021-01-242-0/+41
|\ \ | | | | | | Add interface/enum/annotation icons and modifier displays
| * | Exclude abstract modifier from enum classesGravatar Juuxel2021-01-231-2/+2
| | |
| * | Add interface/enum/annotation icons and modifier displaysGravatar Juuxel2021-01-232-0/+41
| |/ | | | | | | | | | | | | - Adds icons in the sidebar and structure panel for interfaces, enums and annotations. - Adds some modifiers (final, default, abstract, static) to the structure panel.
* / Fixed Javadoc not updating in certain cases (close/open mappings)Gravatar 2xsaiko2021-01-231-0/+10
|/ | | | Closes #210.
* Merge pull request #331 from YanisBft/structure-panelGravatar 2xsaiko2020-12-206-15/+198
|\ | | | | Structure panel
| * use ListMultimap when indexing jarGravatar Yanis482020-12-191-12/+7
| |
| * avoid duplicate logicGravatar Yanis482020-12-152-29/+31
| |
| * Fix automapped againGravatar Yanis482020-12-151-9/+12
| |
| * Fix automapped entriesGravatar Yanis482020-12-151-12/+51
| | | | | | | | Automatically deobfuscated names (like in enums) were displayed with their obfuscated name, and were not considered as deobf when selecting "hide deobf members"
| * Structure panel!Gravatar Yanis482020-12-145-13/+157
| |
* | Add true, false and null to invalid identifiersGravatar 2xsaiko2020-12-201-1/+1
|/
* my fix didn't work for an inner class in another inner classGravatar Yanis482020-12-051-3/+2
| | | | and this is also a way better fix
* Fix inner classes' javadocs not invalidated properlyGravatar Yanis482020-12-051-0/+5
|
* Release using github actions + update ASMGravatar modmuss502020-11-301-1/+1
|
* Do not abort decompile command on decompiler errorsGravatar AlexTMjugador2020-10-241-4/+0
| | | | | | | | | | | | | | | | | | | As explained in PR #289, the decompilers may fail decompiling some vanilla Minecraft classes. Although it is my opinion that these errors should be fixed in the decompilers themselves, currently they render the decompile CLI command useless, as no output is produced whatsoever. The PR that was mentioned previously addressed this situation for the GUI part of Enigma, but not for the CLI commands, which were left untouched. These changes modify the decompiler error strategy used by the aforementioned CLI command to trace the errors, but continue decompiling classes, so at least a partial output is generated. This way users will be happy that the Enigma decompile command works, and developers will still be motivated to fix the underlying issues. Signed-off-by: AlexTMjugador <AlexTMjugador@users.noreply.github.com>
* Revert "Merge pull request #299 from thiakil/validation-changes"Gravatar 2xsaiko2020-10-022-111/+26
| | | | | This reverts commit 112a49dccb1fe7792366112bc829352462cd298c, reversing changes made to b8f06abafc47065f980a94c4ddf7be70cee83411.
* Only conflict when both methods are not syntheticGravatar 2xsaiko2020-10-021-1/+1
|
* Merge pull request #299 from thiakil/validation-changesGravatar 2xsaiko2020-10-022-26/+111
|\ | | | | Validation improvements
| * allow name clashes to pass where javac would accept themGravatar Thiakil2020-07-192-26/+111
| |
* | Don't save duplicate messages in validation contextGravatar 2xsaiko2020-10-012-10/+15
| |
* | Fix #303 (#308)Gravatar Runemoro2020-08-191-3/+4
| |
* | Set config path to Application Support on macGravatar idwtd2020-08-151-1/+1
| |
* | Configuration stuff (#301)Gravatar 2xsaiko2020-08-046-0/+667
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Begin writing new config system * Make config work * Save window size and position * Add editor font chooser * Use *.ini for windows and mac instead of *rc * Allow for changing language without having to restart the program * Save selected directory in file dialogs * Make dialog visible after moving it to the correct position * Don't change theme on the fly since it's broken * Remove unused gui parameter * Use xdg-open to open URLs on Linux since Desktop.browse doesn't work, at least not on my PC * Fix default proposed highlight color * Multi font selection dialog thingy * Remember network options * Make font selection dialog actually work * Collapse general actions ("OK", "Cancel", ..) into one translation * Localize font dialog * Use enum name when saving colors for consistency with currently selected theme * Save size of split panes * Import old config * Add test & fix some parts of the config serializer * TranslationChangeListener/TranslationUtil -> LanguageChangeListener/LanguageUtil
* | Fix losing current cursor position when renaming entries (#297)Gravatar 2xsaiko2020-07-214-24/+102
|/ | | | | | | * Fix losing current cursor position when renaming entries * Set nextReference to null after applying it * Extract token map into wrapper type
* Fix name not being passedGravatar 2xsaiko2020-07-181-1/+1
|
* Mapping format fixes (#294)Gravatar Xander2020-07-132-10/+21
| | | | | | | | | * add test to ensure mapping formats can read/write properly * fix not baking last entries in TinyV2 reader * fix broken filter in Enigma File writer * Fix Enigma Zip writer ZipFS exception on non-matching filesystems