allow table and renaming

git-svn-id: https://svn.code.sf.net/p/jode/code/trunk@561 379699f6-c40d-0410-875b-85095c16579e
stable
jochen 26 years ago
parent 3ad46f9d40
commit 54640800be
  1. 8
      jode/jode/obfuscator/Main.java

@ -78,7 +78,7 @@ public class Obfuscator {
err.println("\t[-none] "+ err.println("\t[-none] "+
"Don't rename any method."); "Don't rename any method.");
err.println("\t[-table <file>] "+ err.println("\t[-table <file>] "+
"Read translation table from file"); "Read (some) translation table from file");
err.println("\t[-revtable <file>] "+ err.println("\t[-revtable <file>] "+
"Write reversed translation table to file"); "Write reversed translation table to file");
err.println("\t[-swaporder] "+ err.println("\t[-swaporder] "+
@ -137,7 +137,6 @@ public class Obfuscator {
else if (params[i].equals("-none")) else if (params[i].equals("-none"))
rename = RENAME_NONE; rename = RENAME_NONE;
else if (params[i].equals("-table")) { else if (params[i].equals("-table")) {
rename = RENAME_TABLE;
table = params[++i]; table = params[++i];
} }
else if (params[i].equals("-revtable")) { else if (params[i].equals("-revtable")) {
@ -171,10 +170,9 @@ public class Obfuscator {
bundle.setPreserved(preserveRule, preservedIdents); bundle.setPreserved(preserveRule, preservedIdents);
err.println("Renaming methods"); err.println("Renaming methods");
if (rename != RENAME_TABLE) if (table != null)
bundle.buildTable(rename);
else
bundle.readTable(table); bundle.readTable(table);
bundle.buildTable(rename);
if (toTable != null) if (toTable != null)
bundle.writeTable(toTable); bundle.writeTable(toTable);

Loading…
Cancel
Save