Skip to content

Commit

Permalink
1.3.0
Browse files Browse the repository at this point in the history
Don't use "" if we don't need to
  • Loading branch information
ThisTestUser committed Sep 22, 2017
1 parent 5a53e8e commit 174e724
Showing 1 changed file with 16 additions and 4 deletions.
20 changes: 16 additions & 4 deletions src/io/github/thistestuser/DeobfuscatorFrame.java
Original file line number Diff line number Diff line change
Expand Up @@ -457,9 +457,18 @@ public void actionPerformed(ActionEvent e)
//Write args
StringBuilder builder = new StringBuilder();
builder.append("java -jar");
builder.append(" \"" + deobfuscatorField.getText() + "\"");
builder.append(" -input " + "\"" + inputField.getText() + "\"");
builder.append(" -output " + "\"" + outputField.getText() + "\"");
if(deobfuscatorField.getText().split(" ").length > 1)
builder.append(" \"" + deobfuscatorField.getText() + "\"");
else
builder.append(" " + deobfuscatorField.getText());
if(inputField.getText().split(" ").length > 1)
builder.append(" -input " + "\"" + inputField.getText() + "\"");
else
builder.append(" -input " + inputField.getText());
if(outputField.getText().split(" ").length > 1)
builder.append(" -output " + "\"" + outputField.getText() + "\"");
else
builder.append(" -output " + outputField.getText());
for(Object o : selectedTransformers.toArray())
{
String transformer = (String)o;
Expand All @@ -468,7 +477,10 @@ public void actionPerformed(ActionEvent e)
for(Object o : librariesList.toArray())
{
String library = (String)o;
builder.append(" -path " + "\"" + library + "\"");
if(library.split(" ").length > 1)
builder.append(" -path " + "\"" + library + "\"");
else
builder.append(" -path " + library);
}
textPane.setText(builder.toString());

Expand Down

0 comments on commit 174e724

Please sign in to comment.