mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/jpexs-decompiler.git
synced 2026-06-02 11:54:36 +00:00
Commandline: allow to pass argument -nobundle to skip bundles detection by extension in -info command
This commit is contained in:
@@ -12,7 +12,8 @@
|
||||
* Lesser General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU Lesser General Public
|
||||
* License along with this library.
|
||||
* License along with this library.
|
||||
*/
|
||||
package com.jpexs.decompiler.flash;
|
||||
|
||||
import com.jpexs.decompiler.flash.iggy.conversion.IggySwfBundle;
|
||||
@@ -35,10 +36,16 @@ public class SWFSourceInfo {
|
||||
|
||||
private final String fileTitle;
|
||||
|
||||
private final boolean detectBundle;
|
||||
|
||||
public SWFSourceInfo(InputStream inputStream, String file, String fileTitle) {
|
||||
this(inputStream, file, fileTitle, true);
|
||||
}
|
||||
public SWFSourceInfo(InputStream inputStream, String file, String fileTitle, boolean detectBundle) {
|
||||
this.inputStream = inputStream;
|
||||
this.file = file;
|
||||
this.fileTitle = fileTitle;
|
||||
this.detectBundle = detectBundle;
|
||||
}
|
||||
|
||||
public InputStream getInputStream() {
|
||||
@@ -77,7 +84,7 @@ public class SWFSourceInfo {
|
||||
return false;
|
||||
}
|
||||
String extension = Path.getExtension(fileObj);
|
||||
String extension = Path.getExtension(fileObj);
|
||||
return (detectBundle) && (extension == null || !(extension.equals(".swf") || extension.equals(".gfx")));
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user