Add missing "." and ".." entries to NUSTitleEncryptedTitleContainer

This commit is contained in:
Maschell 2019-04-24 13:47:58 +02:00
parent 7523bb3c10
commit 041aa4c949
1 changed files with 5 additions and 0 deletions

View File

@ -165,6 +165,11 @@ public class NUSTitleEncryptedFuseContainer implements FuseContainer {
@Override
public int readdir(String path, Pointer buf, FuseFillDir filter, long offset, FuseFileInfo fi) {
filter.apply(buf, ".", null, 0);
if (getParent().isPresent()) {
filter.apply(buf, "..", null, 0);
}
for (Content e : title.getTMD().getAllContents().values()) {
filter.apply(buf, e.getFilename(), null, 0);
if (e.isHashed()) {