|
@@ -185,6 +185,12 @@ public class EntryPoint
|
|
|
|
|
|
private static void extractFirmwareLong(File input, String output) throws InputInvalidException {
|
|
|
byte filler = 0x00;
|
|
|
+ if(!input.getParentFile().mkdirs())
|
|
|
+ {
|
|
|
+ System.err.println("WTF! somethint ate shit");
|
|
|
+ return;
|
|
|
+ }
|
|
|
+
|
|
|
try (RandomAccessFile f = new RandomAccessFile(input,"r")) {
|
|
|
LongHeader hdr = new LongHeader();
|
|
|
byte[] headermagic = new byte[24];
|