mirror of
https://github.com/Maschell/JNUSLib.git
synced 2024-10-02 00:35:08 +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,8 +62,10 @@ 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);
|
||||||
|
|
||||||
|
if (valid) {
|
||||||
calculateOffsets();
|
calculateOffsets();
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
public static WUDImageCompressedInfo getDefaultCompressedInfo() {
|
public static WUDImageCompressedInfo getDefaultCompressedInfo() {
|
||||||
return new WUDImageCompressedInfo(SECTOR_SIZE, 0, WUDImage.WUD_FILESIZE);
|
return new WUDImageCompressedInfo(SECTOR_SIZE, 0, WUDImage.WUD_FILESIZE);
|
||||||
|
Loading…
Reference in New Issue
Block a user