diff options
| author | 2014-09-12 00:45:40 +0200 | |
|---|---|---|
| committer | 2014-09-17 14:35:46 +0000 | |
| commit | 19d04f3abe4427b38a04a60080f52fdf5b9ee7fe (patch) | |
| tree | e1d61a73e4de9d5e202c2744ee19902ab39fc761 /src/core/hle/kernel/archive.h | |
| parent | Core: Add a passthrough backend for the filesystem, exposed as SDMC. (diff) | |
| download | yuzu-19d04f3abe4427b38a04a60080f52fdf5b9ee7fe.tar.gz yuzu-19d04f3abe4427b38a04a60080f52fdf5b9ee7fe.tar.xz yuzu-19d04f3abe4427b38a04a60080f52fdf5b9ee7fe.zip | |
Kernel: Add a File object and a getter for it from an Archive object.
Diffstat (limited to 'src/core/hle/kernel/archive.h')
| -rw-r--r-- | src/core/hle/kernel/archive.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/core/hle/kernel/archive.h b/src/core/hle/kernel/archive.h index 3758e7061..2629d0f26 100644 --- a/src/core/hle/kernel/archive.h +++ b/src/core/hle/kernel/archive.h | |||
| @@ -29,6 +29,15 @@ Handle OpenArchive(FileSys::Archive::IdCode id_code); | |||
| 29 | */ | 29 | */ |
| 30 | Handle CreateArchive(FileSys::Archive* backend, const std::string& name); | 30 | Handle CreateArchive(FileSys::Archive* backend, const std::string& name); |
| 31 | 31 | ||
| 32 | /** | ||
| 33 | * Open a File from an Archive | ||
| 34 | * @param archive_handle Handle to an open Archive object | ||
| 35 | * @param path Path to the File inside of the Archive | ||
| 36 | * @param mode Mode under which to open the File | ||
| 37 | * @return Opened File object | ||
| 38 | */ | ||
| 39 | Handle OpenFileFromArchive(Handle handle, const std::string& name, const FileSys::Mode mode); | ||
| 40 | |||
| 32 | /// Initialize archives | 41 | /// Initialize archives |
| 33 | void ArchiveInit(); | 42 | void ArchiveInit(); |
| 34 | 43 | ||