From f829582ae418504ff6685eeb14fad5a67916c6f9 Mon Sep 17 00:00:00 2001 From: Thog Date: Fri, 24 Mar 2017 01:28:34 +0100 Subject: Implement experimental Tiny mappings loader ~ This will need some tests and more security checks --- src/main/java/cuchaz/enigma/gui/GuiController.java | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/main/java/cuchaz/enigma/gui/GuiController.java') 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 { refreshCurrentClass(); } + public void openTinyMappings(File file) throws IOException, MappingParseException { + this.deobfuscator.setMappings(new MappingsTinyReader().read(file)); + this.isDirty = false; + this.gui.setMappingsFile(file); + refreshClasses(); + refreshCurrentClass(); + } + public void saveMappings(File file) throws IOException { Mappings mappings = this.deobfuscator.getMappings(); switch (mappings.getOriginMappingFormat()) { -- cgit v1.2.3