diff options
| author | Zach Hilman <zachhilman@gmail.com> | 2018-08-18 21:28:17 -0400 |
|---|---|---|
| committer | Zach Hilman <zachhilman@gmail.com> | 2018-08-18 21:28:23 -0400 |
| commit | 27da7bc9daf951bce69970881bdbc8719378ca39 (patch) | |
| tree | 67fb66ecb4ab97f2036712eb5b75216f75e730bf /src/core/file_sys/romfs_factory.h | |
| parent | 367feaefa04679b009941054a4bad58aa9ef6b01 (diff) | |
filesystem: Add support for loading of system archives
Diffstat (limited to 'src/core/file_sys/romfs_factory.h')
| -rw-r--r-- | src/core/file_sys/romfs_factory.h | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/src/core/file_sys/romfs_factory.h b/src/core/file_sys/romfs_factory.h index c19787cd4..455cd4159 100644 --- a/src/core/file_sys/romfs_factory.h +++ b/src/core/file_sys/romfs_factory.h @@ -11,12 +11,22 @@ namespace FileSys { +enum class StorageId : u8 { + None = 0, + Host = 1, + GameCard = 2, + NandSystem = 3, + NandUser = 4, + SdCard = 5, +}; + /// File system interface to the RomFS archive class RomFSFactory { public: explicit RomFSFactory(Loader::AppLoader& app_loader); - ResultVal<VirtualFile> Open(u64 title_id); + ResultVal<VirtualFile> OpenCurrentProcess(); + ResultVal<VirtualFile> Open(u64 title_id, StorageId storage, ContentRecordType type); private: VirtualFile file; |
