mirror of
https://github.com/Maschell/fuse-wiiu.git
synced 2024-11-22 06:39:14 +01:00
Add missing "." and ".." entries to NUSTitleEncryptedTitleContainer
This commit is contained in:
parent
7523bb3c10
commit
041aa4c949
@ -165,6 +165,11 @@ public class NUSTitleEncryptedFuseContainer implements FuseContainer {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public int readdir(String path, Pointer buf, FuseFillDir filter, long offset, FuseFileInfo fi) {
|
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()) {
|
for (Content e : title.getTMD().getAllContents().values()) {
|
||||||
filter.apply(buf, e.getFilename(), null, 0);
|
filter.apply(buf, e.getFilename(), null, 0);
|
||||||
if (e.isHashed()) {
|
if (e.isHashed()) {
|
||||||
|
Loading…
Reference in New Issue
Block a user