diff options
author | bunnei <bunneidev@gmail.com> | 2018-10-06 23:58:24 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-10-06 23:58:24 -0400 |
commit | 6e4d2e672d1083f29186ea0ddcb33cd634e360e3 (patch) | |
tree | cbd20aab8705f8efac340c509ca71b08865a1417 /src/core/loader/loader.h | |
parent | 2c0b0ad50d71ff3b9a50052362b2ffc5ca7977da (diff) | |
parent | 38c2ac95af814e21e65e2785b276c4f64bfead71 (diff) |
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.h | 14 |
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 { ErrorBadRelocationBuckets, ErrorBadSubsectionBuckets, ErrorMissingBKTRBaseRomFS, + ErrorNoPackedUpdate, }; std::ostream& operator<<(std::ostream& os, ResultStatus status); @@ -196,10 +197,19 @@ public: /** * Get the RomFS of the application * Since the RomFS can be huge, we return a file reference instead of copying to a buffer - * @param dir The directory containing the RomFS + * @param file The directory containing the RomFS * @return ResultStatus result of function */ - virtual ResultStatus ReadRomFS(FileSys::VirtualFile& dir) { + virtual ResultStatus ReadRomFS(FileSys::VirtualFile& file) { + return ResultStatus::ErrorNotImplemented; + } + + /** + * Get the raw update of the application, should it come packed with one + * @param file The raw update NCA file (Program-type + * @return ResultStatus result of function + */ + virtual ResultStatus ReadUpdateRaw(FileSys::VirtualFile& file) { return ResultStatus::ErrorNotImplemented; } |