mirror of
https://github.com/Maschell/JNUSLib.git
synced 2024-11-22 07:59:19 +01:00
Fix titles without a FST
This commit is contained in:
parent
56840994fd
commit
e3be1f5a33
@ -53,7 +53,7 @@ public class FSTDataProviderNUSTitle implements FSTDataProvider, HasNUSTitle {
|
||||
// If the tmd has only one content file, it has not FST. We have to create our own FST.
|
||||
Content c = title.getTMD().getAllContents().values().stream().collect(Collectors.toList()).get(0);
|
||||
FSTEntry root = FSTEntry.getRootFSTEntry();
|
||||
FSTEntry.createFSTEntry(root, "data.bin", c); // Will add this title root.
|
||||
root.addChildren(FSTEntry.createFSTEntry(root, "data.bin", c));
|
||||
rootEntry = root;
|
||||
} else {
|
||||
throw new IOException("No FST root entry was found");
|
||||
|
Loading…
Reference in New Issue
Block a user