mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-10-13 22:40:29 +02:00
Return errors on disk full for file creation.
This commit is contained in:
1 parent
d4e8bd96af
commit
a6a234add1
7 files changed
+57
-13
No files matched your search
@@ -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) {
|
||||
|
||||
Reference in new issue
Block a user