mirror of
https://github.com/Maschell/JNUSLib.git
synced 2024-11-21 23:49:17 +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();
|
||||
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());
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user