mirror of
https://github.com/wiiu-env/ContentRedirectionModule.git
synced 2024-09-29 19:48:42 +02:00
37 lines
1.1 KiB
C
37 lines
1.1 KiB
C
|
#pragma once
|
||
|
#include "DirInfoEx.h"
|
||
|
#include "FSWrapper.h"
|
||
|
#include <coreinit/filesystem.h>
|
||
|
#include <functional>
|
||
|
|
||
|
class FSWrapperMergeDirsWithParent : public FSWrapper {
|
||
|
public:
|
||
|
FSWrapperMergeDirsWithParent(const std::string &name,
|
||
|
const std::string &pathToReplace,
|
||
|
const std::string &replaceWithPath,
|
||
|
bool fallbackOnError);
|
||
|
|
||
|
~FSWrapperMergeDirsWithParent() override;
|
||
|
|
||
|
FSStatus FSOpenDirWrapper(const char *path,
|
||
|
FSDirectoryHandle *handle) override;
|
||
|
|
||
|
FSStatus FSReadDirWrapper(FSDirectoryHandle handle,
|
||
|
FSDirectoryEntry *entry) override;
|
||
|
|
||
|
FSStatus FSCloseDirWrapper(FSDirectoryHandle handle) override;
|
||
|
|
||
|
FSStatus FSRewindDirWrapper(FSDirectoryHandle handle) override;
|
||
|
|
||
|
DirInfo *getNewDirHandle() override;
|
||
|
|
||
|
bool SkipDeletedFilesInReadDir() override;
|
||
|
|
||
|
private:
|
||
|
void freeFSClient();
|
||
|
FSClient *pFSClient;
|
||
|
FSCmdBlock *pCmdBlock;
|
||
|
|
||
|
DirInfoEx *getDirExFromHandle(FSDirectoryHandle handle);
|
||
|
};
|