mirror of
https://github.com/Maschell/JNUSLib.git
synced 2024-09-30 07:58:35 +02:00
Only calculate the offsets of a WUX file if it's a valid file.
This commit is contained in:
parent
659b408a59
commit
ebb6e758d3
@ -62,7 +62,9 @@ public class WUDImageCompressedInfo {
|
|||||||
this.flags = ByteUtils.getIntFromBytes(headData, 0x0C, ByteOrder.LITTLE_ENDIAN);
|
this.flags = ByteUtils.getIntFromBytes(headData, 0x0C, ByteOrder.LITTLE_ENDIAN);
|
||||||
this.uncompressedSize = ByteUtils.getLongFromBytes(headData, 0x10, ByteOrder.LITTLE_ENDIAN);
|
this.uncompressedSize = ByteUtils.getLongFromBytes(headData, 0x10, ByteOrder.LITTLE_ENDIAN);
|
||||||
|
|
||||||
calculateOffsets();
|
if (valid) {
|
||||||
|
calculateOffsets();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public static WUDImageCompressedInfo getDefaultCompressedInfo() {
|
public static WUDImageCompressedInfo getDefaultCompressedInfo() {
|
||||||
|
Loading…
Reference in New Issue
Block a user