From 24795729177f87768b07875f313e446706349c7f Mon Sep 17 00:00:00 2001 From: Maschell Date: Thu, 6 Dec 2018 15:35:45 +0100 Subject: [PATCH] Fixed the missing offset in reading WUD files --- .../mas/wiiu/jnus/implementations/wud/reader/WUDDiscReader.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/de/mas/wiiu/jnus/implementations/wud/reader/WUDDiscReader.java b/src/de/mas/wiiu/jnus/implementations/wud/reader/WUDDiscReader.java index 9faca71..1742925 100644 --- a/src/de/mas/wiiu/jnus/implementations/wud/reader/WUDDiscReader.java +++ b/src/de/mas/wiiu/jnus/implementations/wud/reader/WUDDiscReader.java @@ -56,7 +56,7 @@ public abstract class WUDDiscReader { public byte[] readEncryptedToByteArray(long offset, long fileoffset, long size) throws IOException { ByteArrayOutputStream out = new ByteArrayOutputStream(); - readEncryptedToOutputStream(out, offset, size); + readEncryptedToOutputStream(out, offset + fileoffset, size); return out.toByteArray(); }