Fix the Android recursive size computation and hook it up.

This commit is contained in:
Henrik Rydgård
2021-09-11 17:50:07 +02:00
parent 48310d15a9
commit fcc0337576
8 changed files with 44 additions and 36 deletions

View File

@@ -878,6 +878,18 @@ static std::string SimulateVFATBug(std::string filename) {
return filename;
}
bool DirectoryFileSystem::ComputeRecursiveDirSizeIfFast(const std::string &path, int64_t *size) {
Path localPath = GetLocalPath(path);
int64_t sizeTemp = File::ComputeRecursiveDirectorySize(localPath);
if (sizeTemp >= 0) {
*size = sizeTemp;
return true;
} else {
return false;
}
}
std::vector<PSPFileInfo> DirectoryFileSystem::GetDirListing(std::string path) {
std::vector<PSPFileInfo> myVector;