mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-11-28 16:53:40 +01:00
Cleanup the ownership model in MetaFileSystem.
The old one was error-prone spaghetti.
This commit is contained in:
1 parent
868f5f6189
commit
9ae00b80b1
6 files changed
+73
-89
No files matched your search
@@ -19,6 +19,7 @@
|
||||
|
||||
#include <map>
|
||||
#include <list>
|
||||
#include <memory>
|
||||
|
||||
#include "FileSystem.h"
|
||||
|
||||
@@ -100,7 +101,7 @@ private:
|
||||
// the filenames to "", to achieve this.
|
||||
class ISOBlockSystem : public IFileSystem {
|
||||
public:
|
||||
ISOBlockSystem(ISOFileSystem *isoFileSystem) : isoFileSystem_(isoFileSystem) {}
|
||||
ISOBlockSystem(std::shared_ptr<IFileSystem> isoFileSystem) : isoFileSystem_(isoFileSystem) {}
|
||||
|
||||
void DoState(PointerWrap &p) override {
|
||||
// This is a bit iffy, as block device savestates already are iffy (loads/saves multiple times for multiple mounts..)
|
||||
@@ -150,5 +151,5 @@ public:
|
||||
bool RemoveFile(const std::string &filename) override { return false; }
|
||||
|
||||
private:
|
||||
ISOFileSystem *isoFileSystem_;
|
||||
std::shared_ptr<IFileSystem> isoFileSystem_;
|
||||
};
|
||||
Reference in new issue
Block a user