diff options
| author | bunnei <bunneidev@gmail.com> | 2018-08-20 20:17:57 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2018-08-20 20:17:57 -0400 |
| commit | dd70ddad7edb7cfbdddaed0ac657544a613d46e2 (patch) | |
| tree | 76145c48a1f92f64ef53ef8527df392b0fac10a6 /src/core/file_sys/romfs_factory.h | |
| parent | c0fb321935fe3c6c36696cac8f6741fe77c938db (diff) | |
| parent | e8cb6f5c9be4480baa1f870d9cabcb0eab57397b (diff) | |
Merge pull request #1095 from DarkLordZach/sysarchives
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; |
