Use the WumadLoader instead of directly the WumadParser

This commit is contained in:
Maschell 2019-06-04 13:18:50 +02:00
parent d82ccdce07
commit f0413ce055
2 changed files with 2 additions and 4 deletions

View File

@ -11,7 +11,6 @@ import de.mas.wiiu.jnus.WumadLoader;
import de.mas.wiiu.jnus.fuse_wiiu.Settings;
import de.mas.wiiu.jnus.fuse_wiiu.interfaces.FuseDirectory;
import de.mas.wiiu.jnus.implementations.wud.wumad.WumadInfo;
import de.mas.wiiu.jnus.implementations.wud.wumad.WumadParser;
import de.mas.wiiu.jnus.interfaces.FSTDataProvider;
public class WUMADFuseContainer extends PartitionFuseContainer<WumadInfo> {
@ -24,7 +23,7 @@ public class WUMADFuseContainer extends PartitionFuseContainer<WumadInfo> {
protected Optional<WumadInfo> loadInfo(File input) {
if (input != null && input.exists()) {
try {
return Optional.of(WumadParser.createWumadInfo(input));
return Optional.of(WumadLoader.load(input));
} catch (Exception e) {
e.printStackTrace();
}

View File

@ -11,7 +11,6 @@ import de.mas.wiiu.jnus.WumadLoader;
import de.mas.wiiu.jnus.fuse_wiiu.Settings;
import de.mas.wiiu.jnus.fuse_wiiu.interfaces.FuseDirectory;
import de.mas.wiiu.jnus.implementations.wud.wumad.WumadInfo;
import de.mas.wiiu.jnus.implementations.wud.wumad.WumadParser;
import de.mas.wiiu.jnus.interfaces.FSTDataProvider;
public class WUMADMountedFuseContainer extends RecursivePartitionFuseContainer<WumadInfo> {
@ -24,7 +23,7 @@ public class WUMADMountedFuseContainer extends RecursivePartitionFuseContainer<W
protected Optional<WumadInfo> loadInfo(File input) {
if (input != null && input.exists()) {
try {
return Optional.of(WumadParser.createWumadInfo(input));
return Optional.of(WumadLoader.load(input));
} catch (Exception e) {
e.printStackTrace();
}