Skip to content

Commit 174e724

Browse files
committed
1.3.0
Don't use "" if we don't need to
1 parent 5a53e8e commit 174e724

File tree

1 file changed

+16
-4
lines changed

1 file changed

+16
-4
lines changed

src/io/github/thistestuser/DeobfuscatorFrame.java

Lines changed: 16 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -457,9 +457,18 @@ public void actionPerformed(ActionEvent e)
457457
//Write args
458458
StringBuilder builder = new StringBuilder();
459459
builder.append("java -jar");
460-
builder.append(" \"" + deobfuscatorField.getText() + "\"");
461-
builder.append(" -input " + "\"" + inputField.getText() + "\"");
462-
builder.append(" -output " + "\"" + outputField.getText() + "\"");
460+
if(deobfuscatorField.getText().split(" ").length > 1)
461+
builder.append(" \"" + deobfuscatorField.getText() + "\"");
462+
else
463+
builder.append(" " + deobfuscatorField.getText());
464+
if(inputField.getText().split(" ").length > 1)
465+
builder.append(" -input " + "\"" + inputField.getText() + "\"");
466+
else
467+
builder.append(" -input " + inputField.getText());
468+
if(outputField.getText().split(" ").length > 1)
469+
builder.append(" -output " + "\"" + outputField.getText() + "\"");
470+
else
471+
builder.append(" -output " + outputField.getText());
463472
for(Object o : selectedTransformers.toArray())
464473
{
465474
String transformer = (String)o;
@@ -468,7 +477,10 @@ public void actionPerformed(ActionEvent e)
468477
for(Object o : librariesList.toArray())
469478
{
470479
String library = (String)o;
471-
builder.append(" -path " + "\"" + library + "\"");
480+
if(library.split(" ").length > 1)
481+
builder.append(" -path " + "\"" + library + "\"");
482+
else
483+
builder.append(" -path " + library);
472484
}
473485
textPane.setText(builder.toString());
474486

0 commit comments

Comments
 (0)