mirror of
https://github.com/Maschell/JNUSLib.git
synced 2024-11-22 07:59:19 +01:00
Force an 0x10 alignment of the offset when trying to decrypt a file
This commit is contained in:
parent
fc3a604cd4
commit
da196e845f
@ -84,6 +84,9 @@ public class FSTDataProviderNUSTitle implements FSTDataProvider, HasNUSTitle {
|
|||||||
outputStream.close();
|
outputStream.close();
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
if (offset % 16 != 0) {
|
||||||
|
throw new IOException("The offset for decryption need to be aligned to 16");
|
||||||
|
}
|
||||||
|
|
||||||
Content c = title.getTMD().getContentByIndex(entry.getContentIndex());
|
Content c = title.getTMD().getContentByIndex(entry.getContentIndex());
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user