Added #1864 Commandline: Allow to set special value "/dev/stdin" for input files to read from stdin (even on Windows)

This commit is contained in:
Jindra Petřík
2022-11-11 07:53:33 +01:00
parent 1c9f81fceb
commit 3c3a8545a5
6 changed files with 116 additions and 32 deletions

View File

@@ -3222,7 +3222,9 @@ public final class MainPanel extends JPanel implements TreeSelectionListener, Se
if (selectedFile != null) {
File selfile = Helper.fixDialogFile(selectedFile);
try {
new SwfXmlImporter().importSwf(swf, selfile);
try ( FileInputStream fis = new FileInputStream(selfile)) {
new SwfXmlImporter().importSwf(swf, fis);
}
swf.clearAllCache();
swf.assignExportNamesToSymbols();
swf.assignClassesToSymbols();