Update the warning then volume addresses are missing or more than one address is provided

This commit is contained in:
Maschell 2020-12-20 11:23:50 +01:00
parent 70481e9adc
commit 897afeeb2a

View File

@ -76,7 +76,7 @@ public class WiiUPartitions extends LinkedList<WiiUPartition> {
val nonGMPartitions = tmp.stream().filter(e -> !e.getVolumeID().startsWith("GM")).collect(Collectors.toList());
for (val partition : nonGMPartitions) {
if (partition.getVolumes().size() != 1) {
throw new IOException("We can't handle more than one partion address yet.");
throw new IOException("We can't handle more or less than one partion address yet.");
}
val volumeAddress = partition.getVolumes().keySet().iterator().next();
VolumeHeader vh = VolumeHeader.parseData(reader, volumeAddress.getAddressInBytes());