diff options
Diffstat (limited to 'src/core/loader/loader.h')
| -rw-r--r-- | src/core/loader/loader.h | 29 |
1 files changed, 23 insertions, 6 deletions
diff --git a/src/core/loader/loader.h b/src/core/loader/loader.h index be66b2257..843c4bb91 100644 --- a/src/core/loader/loader.h +++ b/src/core/loader/loader.h | |||
| @@ -107,6 +107,14 @@ enum class ResultStatus : u16 { | |||
| 107 | ErrorMissingSDSaveKeySource, | 107 | ErrorMissingSDSaveKeySource, |
| 108 | ErrorMissingSDNCAKeySource, | 108 | ErrorMissingSDNCAKeySource, |
| 109 | ErrorNSPMissingProgramNCA, | 109 | ErrorNSPMissingProgramNCA, |
| 110 | ErrorBadBKTRHeader, | ||
| 111 | ErrorBKTRSubsectionNotAfterRelocation, | ||
| 112 | ErrorBKTRSubsectionNotAtEnd, | ||
| 113 | ErrorBadRelocationBlock, | ||
| 114 | ErrorBadSubsectionBlock, | ||
| 115 | ErrorBadRelocationBuckets, | ||
| 116 | ErrorBadSubsectionBuckets, | ||
| 117 | ErrorMissingBKTRBaseRomFS, | ||
| 110 | }; | 118 | }; |
| 111 | 119 | ||
| 112 | std::ostream& operator<<(std::ostream& os, ResultStatus status); | 120 | std::ostream& operator<<(std::ostream& os, ResultStatus status); |
| @@ -197,13 +205,22 @@ public: | |||
| 197 | } | 205 | } |
| 198 | 206 | ||
| 199 | /** | 207 | /** |
| 200 | * Get the update RomFS of the application | 208 | * Get whether or not updates can be applied to the RomFS. |
| 201 | * Since the RomFS can be huge, we return a file reference instead of copying to a buffer | 209 | * By default, this is true, however for formats where it cannot be guaranteed that the RomFS is |
| 202 | * @param file The file containing the RomFS | 210 | * the base game it should be set to false. |
| 203 | * @return ResultStatus result of function | 211 | * @return bool whether or not updatable. |
| 204 | */ | 212 | */ |
| 205 | virtual ResultStatus ReadUpdateRomFS(FileSys::VirtualFile& file) { | 213 | virtual bool IsRomFSUpdatable() const { |
| 206 | return ResultStatus::ErrorNotImplemented; | 214 | return true; |
| 215 | } | ||
| 216 | |||
| 217 | /** | ||
| 218 | * Gets the difference between the start of the IVFC header and the start of level 6 (RomFS) | ||
| 219 | * data. Needed for bktr patching. | ||
| 220 | * @return IVFC offset for romfs. | ||
| 221 | */ | ||
| 222 | virtual u64 ReadRomFSIVFCOffset() const { | ||
| 223 | return 0; | ||
| 207 | } | 224 | } |
| 208 | 225 | ||
| 209 | /** | 226 | /** |