mirror of
https://github.com/Maschell/JNUSLib.git
synced 2024-11-22 16:09:18 +01:00
Throw an Exception when a FSTDataProviderNUSTitle has no FSTEntry root
This commit is contained in:
parent
a5929f346d
commit
fccd8f8bf4
@ -42,7 +42,7 @@ public class FSTDataProviderNUSTitle implements FSTDataProvider, HasNUSTitle {
|
||||
private final FSTEntry rootEntry;
|
||||
@Getter @Setter private String name;
|
||||
|
||||
public FSTDataProviderNUSTitle(NUSTitle title) {
|
||||
public FSTDataProviderNUSTitle(NUSTitle title) throws IOException {
|
||||
this.title = title;
|
||||
this.name = String.format("%016X", title.getTMD().getTitleID());
|
||||
|
||||
@ -55,7 +55,7 @@ public class FSTDataProviderNUSTitle implements FSTDataProvider, HasNUSTitle {
|
||||
FSTEntry.createFSTEntry(root, "data.bin", c); // Will add this title root.
|
||||
rootEntry = root;
|
||||
} else {
|
||||
rootEntry = null;
|
||||
throw new IOException("No FST root entry was found");
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user