Check actual free disk space when games ask.

Windows only for the moment.
This commit is contained in:
Unknown W. Brackets
2014-11-01 00:33:19 -07:00
parent 763e5c9c4b
commit 2958c575a1
12 changed files with 79 additions and 36 deletions
+11
View File
@@ -591,6 +591,17 @@ int MetaFileSystem::ReadEntireFile(const std::string &filename, std::vector<u8>
return 0;
}
u64 MetaFileSystem::FreeSpace(const std::string &path)
{
lock_guard guard(lock);
std::string of;
IFileSystem *system;
if (MapFilePath(path, of, &system))
return system->FreeSpace(of);
else
return 0;
}
void MetaFileSystem::DoState(PointerWrap &p)
{
lock_guard guard(lock);