diff --git a/src/de/mas/wiiu/jnus/implementations/FSTDataProviderWUDDataPartition.java b/src/de/mas/wiiu/jnus/implementations/FSTDataProviderWUDDataPartition.java index fce0660..708bec3 100644 --- a/src/de/mas/wiiu/jnus/implementations/FSTDataProviderWUDDataPartition.java +++ b/src/de/mas/wiiu/jnus/implementations/FSTDataProviderWUDDataPartition.java @@ -48,20 +48,6 @@ public class FSTDataProviderWUDDataPartition implements FSTDataProvider { return partition.getFST().getRoot(); } - @Override - public byte[] readFile(FSTEntry entry, long offset, long size) throws IOException { - ContentFSTInfo info = FSTUtils.getFSTInfoForContent(partition.getFST(), entry.getContentIndex()) - .orElseThrow(() -> new IOException("Failed to find FSTInfo")); - return getChunkOfData(info.getOffset(), entry.getFileOffset() + offset, size, discReader, titleKey); - } - - public byte[] getChunkOfData(long contentOffset, long fileoffset, long size, WUDDiscReader discReader, byte[] titleKey) throws IOException { - if (titleKey == null) { - return discReader.readEncryptedToByteArray(partition.getPartitionOffset() + contentOffset, fileoffset, (int) size); - } - return discReader.readDecryptedToByteArray(partition.getPartitionOffset() + contentOffset, fileoffset, (int) size, titleKey, null, false); - } - @Override public boolean readFileToStream(OutputStream out, FSTEntry entry, long offset, long size) throws IOException { ContentFSTInfo info = FSTUtils.getFSTInfoForContent(partition.getFST(), entry.getContentIndex()) diff --git a/src/de/mas/wiiu/jnus/implementations/NUSDataProviderWUD.java b/src/de/mas/wiiu/jnus/implementations/NUSDataProviderWUD.java index 78412a6..2cf2d8e 100644 --- a/src/de/mas/wiiu/jnus/implementations/NUSDataProviderWUD.java +++ b/src/de/mas/wiiu/jnus/implementations/NUSDataProviderWUD.java @@ -55,11 +55,6 @@ public class NUSDataProviderWUD implements NUSDataProvider { return getGamePartition().getPartitionOffset() + info.getOffset(); } - @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, long size) throws IOException { WUDDiscReader discReader = getDiscReader();