diff options
| author | 2019-01-24 14:48:32 +0200 | |
|---|---|---|
| committer | 2019-01-24 13:48:32 +0100 | |
| commit | 00fcd0550fcdda621c2e4662f6ddd55ce673b931 (patch) | |
| tree | 6f9e4c24dbcc6d118fceec56adf7bf9d747a485c /src/main/java/cuchaz/enigma/Main.java | |
| parent | mark as 0.13.0-SNAPSHOT for preliminary development (diff) | |
| download | enigma-fork-00fcd0550fcdda621c2e4662f6ddd55ce673b931.tar.gz enigma-fork-00fcd0550fcdda621c2e4662f6ddd55ce673b931.tar.xz enigma-fork-00fcd0550fcdda621c2e4662f6ddd55ce673b931.zip | |
[WIP] Mapping rework (#91)
* Move packages
* Mapping & entry refactor: first pass
* Fix deobf -> obf tree remapping
* Resolve various issues
* Give all entries the potential for parents and treat inner classes as children
* Deobf UI tree elements
* Tests pass
* Sort mapping output
* Fix delta tracking
* Index separation and first pass for #97
* Keep track of remapped jar index
* Fix child entries not being remapped
* Drop non-root entries
* Track dropped mappings
* Fix enigma mapping ordering
* EntryTreeNode interface
* Small tweaks
* Naive full index remap on rename
* Entries can resolve to more than one root entry
* Support alternative resolution strategies
* Bridge method resolution
* Tests pass
* Fix mappings being used where there are none
* Fix methods with different descriptors being considered unique. closes #89
Diffstat (limited to 'src/main/java/cuchaz/enigma/Main.java')
| -rw-r--r-- | src/main/java/cuchaz/enigma/Main.java | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/src/main/java/cuchaz/enigma/Main.java b/src/main/java/cuchaz/enigma/Main.java index 0f15193..ccfc51f 100644 --- a/src/main/java/cuchaz/enigma/Main.java +++ b/src/main/java/cuchaz/enigma/Main.java | |||
| @@ -11,12 +11,12 @@ | |||
| 11 | 11 | ||
| 12 | package cuchaz.enigma; | 12 | package cuchaz.enigma; |
| 13 | 13 | ||
| 14 | import cuchaz.enigma.config.Config; | ||
| 15 | import cuchaz.enigma.config.Themes; | ||
| 16 | import cuchaz.enigma.gui.Gui; | 14 | import cuchaz.enigma.gui.Gui; |
| 15 | import cuchaz.enigma.translation.mapping.serde.MappingFormat; | ||
| 17 | 16 | ||
| 18 | import javax.swing.*; | ||
| 19 | import java.io.File; | 17 | import java.io.File; |
| 18 | import java.nio.file.Files; | ||
| 19 | import java.nio.file.Path; | ||
| 20 | import java.util.jar.JarFile; | 20 | import java.util.jar.JarFile; |
| 21 | 21 | ||
| 22 | public class Main { | 22 | public class Main { |
| @@ -29,7 +29,12 @@ public class Main { | |||
| 29 | gui.getController().openJar(new JarFile(getFile(args[0]))); | 29 | gui.getController().openJar(new JarFile(getFile(args[0]))); |
| 30 | } | 30 | } |
| 31 | if (args.length >= 2) { | 31 | if (args.length >= 2) { |
| 32 | gui.getController().openEnigmaMappings(getFile(args[1])); | 32 | Path mappingsFile = getFile(args[1]).toPath(); |
| 33 | if (Files.isDirectory(mappingsFile)) { | ||
| 34 | gui.getController().openMappings(MappingFormat.ENIGMA_DIRECTORY, mappingsFile); | ||
| 35 | } else { | ||
| 36 | gui.getController().openMappings(MappingFormat.ENIGMA_FILE, mappingsFile); | ||
| 37 | } | ||
| 33 | } | 38 | } |
| 34 | 39 | ||
| 35 | // DEBUG | 40 | // DEBUG |