mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/jpexs-decompiler.git
synced 2026-07-04 22:14:26 +00:00
command line parameter to compare resource (.properties) files
This commit is contained in:
@@ -69,6 +69,7 @@ import com.jpexs.decompiler.flash.exporters.settings.SoundExportSettings;
|
||||
import com.jpexs.decompiler.flash.exporters.settings.TextExportSettings;
|
||||
import com.jpexs.decompiler.flash.exporters.swf.SwfXmlExporter;
|
||||
import com.jpexs.decompiler.flash.gui.Main;
|
||||
import com.jpexs.decompiler.flash.gui.helpers.CheckResources;
|
||||
import com.jpexs.decompiler.flash.helpers.FileTextWriter;
|
||||
import com.jpexs.decompiler.flash.importers.BinaryDataImporter;
|
||||
import com.jpexs.decompiler.flash.importers.ImageImporter;
|
||||
@@ -398,9 +399,12 @@ public class CommandLineArgumentParser {
|
||||
}
|
||||
Configuration.debugMode.set(true);
|
||||
break;
|
||||
case "-debugtool":
|
||||
case "--debugtool":
|
||||
parseDebugTool(args);
|
||||
break;
|
||||
case "--compareresources":
|
||||
parseCompareResources(args);
|
||||
break;
|
||||
default:
|
||||
break OUTER;
|
||||
}
|
||||
@@ -836,6 +840,16 @@ public class CommandLineArgumentParser {
|
||||
}
|
||||
}
|
||||
|
||||
private static void parseCompareResources(Stack<String> args) {
|
||||
String revision = args.pop().toLowerCase();
|
||||
String revision2 = null;
|
||||
if (!args.isEmpty()) {
|
||||
revision2 = args.pop();
|
||||
}
|
||||
|
||||
CheckResources.compareResources(System.out, revision, revision2);
|
||||
}
|
||||
|
||||
private static void parseProxy(Stack<String> args) {
|
||||
int port = 55555;
|
||||
String portStr = args.peek();
|
||||
|
||||
Reference in New Issue
Block a user