Add getAbsolutePartitionOffset function to the WUDPartition class.

This commit is contained in:
Maschell 2019-04-10 18:00:21 +02:00
parent de322b9ebc
commit 64b6cfed97

View File

@ -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();
}
}