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
@@ -23,7 +23,7 @@
|
||||
class MetaFileSystem : public IHandleAllocator, public IFileSystem
|
||||
{
|
||||
private:
|
||||
u32 current;
|
||||
s32 current;
|
||||
struct MountPoint
|
||||
{
|
||||
std::string prefix;
|
||||
@@ -60,7 +60,13 @@ public:
|
||||
|
||||
void Shutdown();
|
||||
|
||||
u32 GetNewHandle() {return current++;}
|
||||
u32 GetNewHandle() {
|
||||
u32 res = current++;
|
||||
if (current < 0) {
|
||||
current = 0;
|
||||
}
|
||||
return res;
|
||||
}
|
||||
void FreeHandle(u32 handle) {}
|
||||
|
||||
virtual void DoState(PointerWrap &p);
|
||||
|
||||
Reference in new issue
Block a user