mirror of
https://github.com/Maschell/JNUSLib.git
synced 2024-11-25 17:36:55 +01:00
Optimize the getChunkFromContent function for the WUD implementations
This commit is contained in:
parent
a0ce50a4b5
commit
4f2d811b69
@ -55,6 +55,11 @@ public class NUSDataProviderWUD extends NUSDataProvider {
|
||||
return (long) Settings.WIIU_DECRYPTED_AREA_OFFSET + getGamePartition().getPartitionOffset();
|
||||
}
|
||||
|
||||
@Override
|
||||
public byte[] getChunkFromContent(Content content, long offset, int size) throws IOException {
|
||||
return discReader.readEncryptedToByteArray(getOffsetInWUD(content), offset, size);
|
||||
}
|
||||
|
||||
@Override
|
||||
public InputStream getInputStreamFromContent(Content content, long fileOffsetBlock) throws IOException {
|
||||
WUDDiscReader discReader = getDiscReader();
|
||||
|
Loading…
Reference in New Issue
Block a user