From d3f23618030785390311126162c71ca338a3d598 Mon Sep 17 00:00:00 2001 From: Maschell Date: Fri, 19 Apr 2019 10:44:08 +0200 Subject: [PATCH] Throw an exception instead of doing a System.exit when the offset is too big. --- .../implementations/wud/reader/WUDDiscReaderCompressed.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/de/mas/wiiu/jnus/implementations/wud/reader/WUDDiscReaderCompressed.java b/src/de/mas/wiiu/jnus/implementations/wud/reader/WUDDiscReaderCompressed.java index f88aee2..3928d3d 100644 --- a/src/de/mas/wiiu/jnus/implementations/wud/reader/WUDDiscReaderCompressed.java +++ b/src/de/mas/wiiu/jnus/implementations/wud/reader/WUDDiscReaderCompressed.java @@ -46,8 +46,7 @@ public class WUDDiscReaderCompressed extends WUDDiscReader { long usedSize = size; if (fileBytesLeft <= 0) { - log.warning("offset too big"); - System.exit(1); + throw new IOException("Offset was to big."); } if (fileBytesLeft < usedSize) { usedSize = fileBytesLeft;