diff options
author | bunnei <bunneidev@gmail.com> | 2014-12-16 04:15:08 +0100 |
---|---|---|
committer | bunnei <bunneidev@gmail.com> | 2014-12-16 04:15:08 +0100 |
commit | cd2a31eaf4a35568a18840eba7d3cdac59881d2f (patch) | |
tree | 37a4d61adebae300e8ef172538c6a2d2eae80ff1 /src/core/file_sys/file_romfs.h | |
parent | Update README.md (diff) | |
parent | Work around libstdc++'s lack of support for std::hash on enums (diff) | |
download | yuzu-cd2a31eaf4a35568a18840eba7d3cdac59881d2f.tar yuzu-cd2a31eaf4a35568a18840eba7d3cdac59881d2f.tar.gz yuzu-cd2a31eaf4a35568a18840eba7d3cdac59881d2f.tar.bz2 yuzu-cd2a31eaf4a35568a18840eba7d3cdac59881d2f.tar.lz yuzu-cd2a31eaf4a35568a18840eba7d3cdac59881d2f.tar.xz yuzu-cd2a31eaf4a35568a18840eba7d3cdac59881d2f.tar.zst yuzu-cd2a31eaf4a35568a18840eba7d3cdac59881d2f.zip |
Diffstat (limited to 'src/core/file_sys/file_romfs.h')
-rw-r--r-- | src/core/file_sys/file_romfs.h | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/src/core/file_sys/file_romfs.h b/src/core/file_sys/file_romfs.h index 5196701d3..09fa2e7e3 100644 --- a/src/core/file_sys/file_romfs.h +++ b/src/core/file_sys/file_romfs.h @@ -6,7 +6,7 @@ #include "common/common_types.h" -#include "core/file_sys/file.h" +#include "core/file_sys/file_backend.h" #include "core/loader/loader.h" //////////////////////////////////////////////////////////////////////////////////////////////////// @@ -14,10 +14,11 @@ namespace FileSys { -class File_RomFS final : public File { +class Archive_RomFS; + +class File_RomFS final : public FileBackend { public: - File_RomFS(); - ~File_RomFS() override; + File_RomFS(const Archive_RomFS* archive) : archive(archive) {} /** * Open the file @@ -62,6 +63,9 @@ public: * @return true if the file closed correctly */ bool Close() const override; + +private: + const Archive_RomFS* archive; }; } // namespace FileSys |