Return errors on disk full for file creation.

This commit is contained in:
Unknown W. Brackets committed 2014-11-02 12:40:31 -08:00
1 parent d4e8bd96af
commit a6a234add1
7 files changed
+57 -13

No files matched your search

+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
{