mirror of
https://github.com/izzy2lost/ppsspp.git
synced 2026-03-10 12:43:04 -07:00
Fix the Android recursive size computation and hook it up.
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user