mirror of
https://github.com/izzy2lost/ppsspp.git
synced 2026-03-10 12:43:04 -07:00
@@ -606,20 +606,18 @@ int MetaFileSystem::ReadEntireFile(const std::string &filename, std::vector<u8>
|
||||
return 0;
|
||||
}
|
||||
|
||||
u64 MetaFileSystem::FreeSpace(const std::string &path)
|
||||
{
|
||||
u64 MetaFileSystem::FreeDiskSpace(const std::string &path) {
|
||||
std::lock_guard<std::recursive_mutex> guard(lock);
|
||||
std::string of;
|
||||
IFileSystem *system;
|
||||
int error = MapFilePath(path, of, &system);
|
||||
if (error == 0)
|
||||
return system->FreeSpace(of);
|
||||
return system->FreeDiskSpace(of);
|
||||
else
|
||||
return 0;
|
||||
}
|
||||
|
||||
void MetaFileSystem::DoState(PointerWrap &p)
|
||||
{
|
||||
void MetaFileSystem::DoState(PointerWrap &p) {
|
||||
std::lock_guard<std::recursive_mutex> guard(lock);
|
||||
|
||||
auto s = p.Section("MetaFileSystem", 1);
|
||||
@@ -634,8 +632,7 @@ void MetaFileSystem::DoState(PointerWrap &p)
|
||||
u32 n = (u32) fileSystems.size();
|
||||
Do(p, n);
|
||||
bool skipPfat0 = false;
|
||||
if (n != (u32) fileSystems.size())
|
||||
{
|
||||
if (n != (u32) fileSystems.size()) {
|
||||
if (n == (u32) fileSystems.size() - 1) {
|
||||
skipPfat0 = true;
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user