From 64b6cfed977896ef5fa48a0a49a95e8a2a851a6b Mon Sep 17 00:00:00 2001 From: Maschell Date: Wed, 10 Apr 2019 18:00:21 +0200 Subject: [PATCH] Add getAbsolutePartitionOffset function to the WUDPartition class. --- .../wiiu/jnus/implementations/wud/parser/WUDPartition.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/de/mas/wiiu/jnus/implementations/wud/parser/WUDPartition.java b/src/de/mas/wiiu/jnus/implementations/wud/parser/WUDPartition.java index 5efb8ff..5cc9769 100644 --- a/src/de/mas/wiiu/jnus/implementations/wud/parser/WUDPartition.java +++ b/src/de/mas/wiiu/jnus/implementations/wud/parser/WUDPartition.java @@ -16,6 +16,7 @@ ****************************************************************************/ package de.mas.wiiu.jnus.implementations.wud.parser; +import de.mas.wiiu.jnus.Settings; import lombok.Data; @Data @@ -24,4 +25,8 @@ public class WUDPartition { private final long partitionOffset; private WUDPartitionHeader partitionHeader; + + public long getAbsolutePartitionOffset() { + return Settings.WIIU_DECRYPTED_AREA_OFFSET + getPartitionOffset(); + } }