fs.mitm: experimental support for save redirection to sd.
This commit is contained in:
@@ -198,13 +198,18 @@ class IFileSystem {
|
||||
|
||||
class IFileSystemInterface : public IServiceObject {
|
||||
private:
|
||||
std::unique_ptr<IFileSystem> base_fs;
|
||||
std::unique_ptr<IFileSystem> unique_fs;
|
||||
std::shared_ptr<IFileSystem> shared_fs;
|
||||
IFileSystem *base_fs;
|
||||
public:
|
||||
IFileSystemInterface(IFileSystem *fs) : base_fs(fs) {
|
||||
/* ... */
|
||||
IFileSystemInterface(IFileSystem *fs) : unique_fs(fs) {
|
||||
this->base_fs = this->unique_fs.get();
|
||||
};
|
||||
IFileSystemInterface(std::unique_ptr<IFileSystem> fs) : base_fs(std::move(fs)) {
|
||||
/* ... */
|
||||
IFileSystemInterface(std::unique_ptr<IFileSystem> fs) : unique_fs(std::move(fs)) {
|
||||
this->base_fs = this->unique_fs.get();
|
||||
};
|
||||
IFileSystemInterface(std::shared_ptr<IFileSystem> fs) : shared_fs(fs) {
|
||||
this->base_fs = this->shared_fs.get();
|
||||
};
|
||||
|
||||
private:
|
||||
|
||||
Reference in New Issue
Block a user