diff options
| author | 2015-07-10 00:55:23 +0300 | |
|---|---|---|
| committer | 2015-07-13 19:57:12 -0300 | |
| commit | c385b7767d32eccabbfeaa12764310cfc3d113b9 (patch) | |
| tree | 1868679b3e7c30c05eb76d5e1f09fd01c86e3e65 /src/core/loader/loader.h | |
| parent | Merge pull request #927 from yuriks/getopt-fix (diff) | |
| download | yuzu-c385b7767d32eccabbfeaa12764310cfc3d113b9.tar.gz yuzu-c385b7767d32eccabbfeaa12764310cfc3d113b9.tar.xz yuzu-c385b7767d32eccabbfeaa12764310cfc3d113b9.zip | |
FS: Stream RomFS from file instead of loading all of it to memory
Diffstat (limited to 'src/core/loader/loader.h')
| -rw-r--r-- | src/core/loader/loader.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/core/loader/loader.h b/src/core/loader/loader.h index 52bbf35b8..ff298222b 100644 --- a/src/core/loader/loader.h +++ b/src/core/loader/loader.h | |||
| @@ -99,10 +99,13 @@ public: | |||
| 99 | 99 | ||
| 100 | /** | 100 | /** |
| 101 | * Get the RomFS of the application | 101 | * Get the RomFS of the application |
| 102 | * @param buffer Reference to buffer to store data | 102 | * Since the RomFS can be huge, we return a file reference instead of copying to a buffer |
| 103 | * @param romfs_file The file containing the RomFS | ||
| 104 | * @param offset The offset the romfs begins on | ||
| 105 | * @param size The size of the romfs | ||
| 103 | * @return ResultStatus result of function | 106 | * @return ResultStatus result of function |
| 104 | */ | 107 | */ |
| 105 | virtual ResultStatus ReadRomFS(std::vector<u8>& buffer) const { | 108 | virtual ResultStatus ReadRomFS(std::shared_ptr<FileUtil::IOFile>& romfs_file, u64& offset, u64& size) const { |
| 106 | return ResultStatus::ErrorNotImplemented; | 109 | return ResultStatus::ErrorNotImplemented; |
| 107 | } | 110 | } |
| 108 | 111 | ||