diff options
| author | 2017-03-24 01:28:34 +0100 | |
|---|---|---|
| committer | 2017-03-24 01:28:34 +0100 | |
| commit | f829582ae418504ff6685eeb14fad5a67916c6f9 (patch) | |
| tree | bdcfebffe3f0618e06552dc59b7d1cef0b541dae /src/main/java/cuchaz/enigma/gui/GuiController.java | |
| parent | Fix var naming and locals var index issues (diff) | |
| download | enigma-fork-f829582ae418504ff6685eeb14fad5a67916c6f9.tar.gz enigma-fork-f829582ae418504ff6685eeb14fad5a67916c6f9.tar.xz enigma-fork-f829582ae418504ff6685eeb14fad5a67916c6f9.zip | |
Implement experimental Tiny mappings loader
~ This will need some tests and more security checks
Diffstat (limited to 'src/main/java/cuchaz/enigma/gui/GuiController.java')
| -rw-r--r-- | src/main/java/cuchaz/enigma/gui/GuiController.java | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/main/java/cuchaz/enigma/gui/GuiController.java b/src/main/java/cuchaz/enigma/gui/GuiController.java index 1b461da..c3cdbf8 100644 --- a/src/main/java/cuchaz/enigma/gui/GuiController.java +++ b/src/main/java/cuchaz/enigma/gui/GuiController.java | |||
| @@ -71,6 +71,14 @@ public class GuiController { | |||
| 71 | refreshCurrentClass(); | 71 | refreshCurrentClass(); |
| 72 | } | 72 | } |
| 73 | 73 | ||
| 74 | public void openTinyMappings(File file) throws IOException, MappingParseException { | ||
| 75 | this.deobfuscator.setMappings(new MappingsTinyReader().read(file)); | ||
| 76 | this.isDirty = false; | ||
| 77 | this.gui.setMappingsFile(file); | ||
| 78 | refreshClasses(); | ||
| 79 | refreshCurrentClass(); | ||
| 80 | } | ||
| 81 | |||
| 74 | public void saveMappings(File file) throws IOException { | 82 | public void saveMappings(File file) throws IOException { |
| 75 | Mappings mappings = this.deobfuscator.getMappings(); | 83 | Mappings mappings = this.deobfuscator.getMappings(); |
| 76 | switch (mappings.getOriginMappingFormat()) { | 84 | switch (mappings.getOriginMappingFormat()) { |