diff options
| author | 2019-06-18 21:46:11 +0200 | |
|---|---|---|
| committer | 2019-06-18 21:46:11 +0200 | |
| commit | 257e8c3f33755a12209b203545f314286ce05382 (patch) | |
| tree | d818bcebf7634ed5b716ee29619725fdc29a04e8 /src/main/java/cuchaz/enigma/gui/GuiController.java | |
| parent | Use jopt for cli parsing (diff) | |
| download | enigma-fork-257e8c3f33755a12209b203545f314286ce05382.tar.gz enigma-fork-257e8c3f33755a12209b203545f314286ce05382.tar.xz enigma-fork-257e8c3f33755a12209b203545f314286ce05382.zip | |
Parse profile json from cli args
Diffstat (limited to 'src/main/java/cuchaz/enigma/gui/GuiController.java')
| -rw-r--r-- | src/main/java/cuchaz/enigma/gui/GuiController.java | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/src/main/java/cuchaz/enigma/gui/GuiController.java b/src/main/java/cuchaz/enigma/gui/GuiController.java index 4410bf3..209b5d1 100644 --- a/src/main/java/cuchaz/enigma/gui/GuiController.java +++ b/src/main/java/cuchaz/enigma/gui/GuiController.java | |||
| @@ -14,10 +14,7 @@ package cuchaz.enigma.gui; | |||
| 14 | import com.google.common.collect.Lists; | 14 | import com.google.common.collect.Lists; |
| 15 | import com.google.common.util.concurrent.ThreadFactoryBuilder; | 15 | import com.google.common.util.concurrent.ThreadFactoryBuilder; |
| 16 | import com.strobel.decompiler.languages.java.ast.CompilationUnit; | 16 | import com.strobel.decompiler.languages.java.ast.CompilationUnit; |
| 17 | import cuchaz.enigma.CompiledSourceTypeLoader; | 17 | import cuchaz.enigma.*; |
| 18 | import cuchaz.enigma.Enigma; | ||
| 19 | import cuchaz.enigma.EnigmaProject; | ||
| 20 | import cuchaz.enigma.SourceProvider; | ||
| 21 | import cuchaz.enigma.analysis.*; | 18 | import cuchaz.enigma.analysis.*; |
| 22 | import cuchaz.enigma.api.service.ObfuscationTestService; | 19 | import cuchaz.enigma.api.service.ObfuscationTestService; |
| 23 | import cuchaz.enigma.bytecode.translators.SourceFixVisitor; | 20 | import cuchaz.enigma.bytecode.translators.SourceFixVisitor; |
| @@ -70,10 +67,11 @@ public class GuiController { | |||
| 70 | 67 | ||
| 71 | private DecompiledClassSource currentSource; | 68 | private DecompiledClassSource currentSource; |
| 72 | 69 | ||
| 73 | public GuiController(Gui gui) { | 70 | public GuiController(Gui gui, EnigmaProfile profile) { |
| 74 | this.gui = gui; | 71 | this.gui = gui; |
| 75 | // TODO: load and set profile | 72 | this.enigma = Enigma.builder() |
| 76 | this.enigma = Enigma.create(); | 73 | .setProfile(profile) |
| 74 | .build(); | ||
| 77 | } | 75 | } |
| 78 | 76 | ||
| 79 | public boolean isDirty() { | 77 | public boolean isDirty() { |