mirror of
https://github.com/Maschell/JNUSLib.git
synced 2025-02-17 00:36:21 +01: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.uncompressedSize = ByteUtils.getLongFromBytes(headData, 0x10, ByteOrder.LITTLE_ENDIAN);
|
||||
|
||||
calculateOffsets();
|
||||
if (valid) {
|
||||
calculateOffsets();
|
||||
}
|
||||
}
|
||||
|
||||
public static WUDImageCompressedInfo getDefaultCompressedInfo() {
|
||||
|
Loading…
x
Reference in New Issue
Block a user