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

+3 -1
View File
@@ -133,10 +133,12 @@ private:
u64 size; // only used by lbn files
bool Open(std::string& basePath, std::string& fileName, FileAccess access) {
// Ignored, we're read only.
u32 err;
if (handler.IsValid()) {
return handler.Open(basePath, fileName, access);
} else {
return hFile.Open(basePath, fileName, access);
return hFile.Open(basePath, fileName, access, err);
}
}
size_t Read(u8 *data, s64 size) {