From 75e28a733b39a4ad1e665d00b7cc7742c9f9b0ec Mon Sep 17 00:00:00 2001 From: Maschell Date: Thu, 18 Apr 2019 23:28:01 +0200 Subject: [PATCH] Some minor code cleanup for the WUDInfoParser --- .../wiiu/jnus/implementations/wud/parser/WUDInfoParser.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/de/mas/wiiu/jnus/implementations/wud/parser/WUDInfoParser.java b/src/de/mas/wiiu/jnus/implementations/wud/parser/WUDInfoParser.java index 8ed252b..beb0190 100644 --- a/src/de/mas/wiiu/jnus/implementations/wud/parser/WUDInfoParser.java +++ b/src/de/mas/wiiu/jnus/implementations/wud/parser/WUDInfoParser.java @@ -96,10 +96,10 @@ public final class WUDInfoParser { String partitionName = new String(Arrays.copyOfRange(partitionIdentifier, 0, j)); // calculate partition offset from decrypted TOC - long tmp = ByteUtils.getUnsingedIntFromBytes(partitionTocBlock, (PARTITION_TOC_OFFSET + (i * PARTITION_TOC_ENTRY_SIZE) + 0x20), + long offsetInSector = ByteUtils.getUnsingedIntFromBytes(partitionTocBlock, (PARTITION_TOC_OFFSET + (i * PARTITION_TOC_ENTRY_SIZE) + 0x20), ByteOrder.BIG_ENDIAN); - long partitionOffset = (tmp * (long) 0x8000); + long partitionOffset = (offsetInSector * (long) SECTOR_SIZE); internalPartitions.put(partitionName, partitionOffset); }