Only calculate the offsets of a WUX file if it's a valid file.

This commit is contained in:
Maschell 2018-12-06 15:31:10 +01:00
parent 659b408a59
commit ebb6e758d3

View File

@ -62,7 +62,9 @@ public class WUDImageCompressedInfo {
this.flags = ByteUtils.getIntFromBytes(headData, 0x0C, ByteOrder.LITTLE_ENDIAN);
this.uncompressedSize = ByteUtils.getLongFromBytes(headData, 0x10, ByteOrder.LITTLE_ENDIAN);
calculateOffsets();
if (valid) {
calculateOffsets();
}
}
public static WUDImageCompressedInfo getDefaultCompressedInfo() {