diff options
| author | 2016-08-12 19:59:54 +0200 | |
|---|---|---|
| committer | 2016-08-12 19:59:54 +0200 | |
| commit | 6032f55ede3c1b550cfd83b2f768926c992d9a98 (patch) | |
| tree | 75aa7866c2dd635d03798819ea0e691ec85f2247 /src/main/java/cuchaz/enigma/gui/GuiController.java | |
| parent | Implement Enigma directory format (#1) (diff) | |
| download | enigma-fork-6032f55ede3c1b550cfd83b2f768926c992d9a98.tar.gz enigma-fork-6032f55ede3c1b550cfd83b2f768926c992d9a98.tar.xz enigma-fork-6032f55ede3c1b550cfd83b2f768926c992d9a98.zip | |
Remoe JSON directory format support and clean up others things
Diffstat (limited to 'src/main/java/cuchaz/enigma/gui/GuiController.java')
| -rw-r--r-- | src/main/java/cuchaz/enigma/gui/GuiController.java | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/src/main/java/cuchaz/enigma/gui/GuiController.java b/src/main/java/cuchaz/enigma/gui/GuiController.java index d416345..68f7c56 100644 --- a/src/main/java/cuchaz/enigma/gui/GuiController.java +++ b/src/main/java/cuchaz/enigma/gui/GuiController.java | |||
| @@ -72,14 +72,6 @@ public class GuiController { | |||
| 72 | refreshCurrentClass(); | 72 | refreshCurrentClass(); |
| 73 | } | 73 | } |
| 74 | 74 | ||
| 75 | public void openJsonMappings(File file) throws IOException { | ||
| 76 | this.deobfuscator.setMappings(new MappingsJsonReader().read(file)); | ||
| 77 | this.isDirty = false; | ||
| 78 | this.gui.setMappingsFile(file); | ||
| 79 | refreshClasses(); | ||
| 80 | refreshCurrentClass(); | ||
| 81 | } | ||
| 82 | |||
| 83 | public void saveMappings(File file) throws IOException { | 75 | public void saveMappings(File file) throws IOException { |
| 84 | Mappings mappings = this.deobfuscator.getMappings(); | 76 | Mappings mappings = this.deobfuscator.getMappings(); |
| 85 | switch (mappings.getOriginMappingFormat()) | 77 | switch (mappings.getOriginMappingFormat()) |
| @@ -87,9 +79,6 @@ public class GuiController { | |||
| 87 | case SRG_FILE: | 79 | case SRG_FILE: |
| 88 | saveSRGMappings(file); | 80 | saveSRGMappings(file); |
| 89 | break; | 81 | break; |
| 90 | case JSON_DIRECTORY: | ||
| 91 | saveJsonMappings(file); | ||
| 92 | break; | ||
| 93 | default: | 82 | default: |
| 94 | saveEnigmaMappings(file, Mappings.FormatType.ENIGMA_FILE != mappings.getOriginMappingFormat()); | 83 | saveEnigmaMappings(file, Mappings.FormatType.ENIGMA_FILE != mappings.getOriginMappingFormat()); |
| 95 | break; | 84 | break; |
| @@ -97,11 +86,6 @@ public class GuiController { | |||
| 97 | 86 | ||
| 98 | } | 87 | } |
| 99 | 88 | ||
| 100 | public void saveJsonMappings(File file) throws IOException { | ||
| 101 | new MappingsJsonWriter().write(file, this.deobfuscator.getMappings()); | ||
| 102 | this.isDirty = false; | ||
| 103 | } | ||
| 104 | |||
| 105 | public void saveEnigmaMappings(File file, boolean isDirectoryFormat) throws IOException { | 89 | public void saveEnigmaMappings(File file, boolean isDirectoryFormat) throws IOException { |
| 106 | new MappingsEnigmaWriter().write(file, this.deobfuscator.getMappings(), isDirectoryFormat); | 90 | new MappingsEnigmaWriter().write(file, this.deobfuscator.getMappings(), isDirectoryFormat); |
| 107 | this.isDirty = false; | 91 | this.isDirty = false; |