Return errors on disk full for file creation.

This commit is contained in:
Unknown W. Brackets
2014-11-02 12:40:31 -08:00
parent d4e8bd96af
commit a6a234add1
7 changed files with 57 additions and 13 deletions
+7 -1
View File
@@ -348,7 +348,13 @@ u32 MetaFileSystem::OpenFile(std::string filename, FileAccess access, const char
MountPoint *mount;
if (MapFilePath(filename, of, &mount))
{
return mount->system->OpenFile(of, access, mount->prefix.c_str());
s32 res = mount->system->OpenFile(of, access, mount->prefix.c_str());
if (res < 0)
{
lastOpenError = res;
return 0;
}
return res;
}
else
{