summaryrefslogtreecommitdiff
path: root/src/core/loader/loader.h
diff options
context:
space:
mode:
authorGravatar bunnei2018-10-06 23:58:24 -0400
committerGravatar GitHub2018-10-06 23:58:24 -0400
commit6e4d2e672d1083f29186ea0ddcb33cd634e360e3 (patch)
treecbd20aab8705f8efac340c509ca71b08865a1417 /src/core/loader/loader.h
parentMerge pull request #1446 from bunnei/fast_fermi_copy (diff)
parentromfs_factory: Extract packed update setter to new function (diff)
downloadyuzu-6e4d2e672d1083f29186ea0ddcb33cd634e360e3.tar.gz
yuzu-6e4d2e672d1083f29186ea0ddcb33cd634e360e3.tar.xz
yuzu-6e4d2e672d1083f29186ea0ddcb33cd634e360e3.zip
Merge pull request #1396 from DarkLordZach/packed-updates
loader: Add support for packed updates
Diffstat (limited to 'src/core/loader/loader.h')
-rw-r--r--src/core/loader/loader.h14
1 files changed, 12 insertions, 2 deletions
diff --git a/src/core/loader/loader.h b/src/core/loader/loader.h
index 20e66109b..0e0333db5 100644
--- a/src/core/loader/loader.h
+++ b/src/core/loader/loader.h
@@ -114,6 +114,7 @@ enum class ResultStatus : u16 {
114 ErrorBadRelocationBuckets, 114 ErrorBadRelocationBuckets,
115 ErrorBadSubsectionBuckets, 115 ErrorBadSubsectionBuckets,
116 ErrorMissingBKTRBaseRomFS, 116 ErrorMissingBKTRBaseRomFS,
117 ErrorNoPackedUpdate,
117}; 118};
118 119
119std::ostream& operator<<(std::ostream& os, ResultStatus status); 120std::ostream& operator<<(std::ostream& os, ResultStatus status);
@@ -196,10 +197,19 @@ public:
196 /** 197 /**
197 * Get the RomFS of the application 198 * Get the RomFS of the application
198 * Since the RomFS can be huge, we return a file reference instead of copying to a buffer 199 * Since the RomFS can be huge, we return a file reference instead of copying to a buffer
199 * @param dir The directory containing the RomFS 200 * @param file The directory containing the RomFS
200 * @return ResultStatus result of function 201 * @return ResultStatus result of function
201 */ 202 */
202 virtual ResultStatus ReadRomFS(FileSys::VirtualFile& dir) { 203 virtual ResultStatus ReadRomFS(FileSys::VirtualFile& file) {
204 return ResultStatus::ErrorNotImplemented;
205 }
206
207 /**
208 * Get the raw update of the application, should it come packed with one
209 * @param file The raw update NCA file (Program-type
210 * @return ResultStatus result of function
211 */
212 virtual ResultStatus ReadUpdateRaw(FileSys::VirtualFile& file) {
203 return ResultStatus::ErrorNotImplemented; 213 return ResultStatus::ErrorNotImplemented;
204 } 214 }
205 215