mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-10-11 05:26:24 +02:00
Refactor DirectoryFileSystem::GetDirListing to use GetFilesInDir.
Lets us remove some platform specific code, fixing the content URI case.
This commit is contained in:
1 parent
bea9f67c02
commit
2f04fc1c00
2 files changed
+38
-88
No files matched your search
@@ -127,7 +127,7 @@ static bool ParseFileInfo(const std::string &line, File::FileInfo *fileInfo) {
|
||||
sscanf(parts[1].c_str(), "%" PRIu64, &fileInfo->size);
|
||||
fileInfo->fullName = Path(parts[3]);
|
||||
fileInfo->isWritable = true; // TODO: Should be passed as part of the string.
|
||||
fileInfo->access = 0777; // TODO: For read-only mappings, reflect that here, similarly as with isWritable.
|
||||
fileInfo->access = fileInfo->isDirectory ? 0666 : 0777; // TODO: For read-only mappings, reflect that here, similarly as with isWritable.
|
||||
|
||||
uint64_t lastModifiedMs = 0;
|
||||
sscanf(parts[4].c_str(), "%" PRIu64, &lastModifiedMs);
|
||||
|
||||
Reference in new issue
Block a user