summaryrefslogtreecommitdiffstats
path: root/src/core/loader/loader.h
diff options
context:
space:
mode:
authorZach Hilman <zachhilman@gmail.com>2018-08-26 01:05:22 +0200
committerZach Hilman <zachhilman@gmail.com>2018-09-04 22:23:44 +0200
commitf5e03b9173268d2607b9db379fef93170212328a (patch)
treead2386139dd70f3ac9e1b2ae72837ca745b6f6d2 /src/core/loader/loader.h
parentloader: Ignore patches on NRO and DRD (diff)
downloadyuzu-f5e03b9173268d2607b9db379fef93170212328a.tar
yuzu-f5e03b9173268d2607b9db379fef93170212328a.tar.gz
yuzu-f5e03b9173268d2607b9db379fef93170212328a.tar.bz2
yuzu-f5e03b9173268d2607b9db379fef93170212328a.tar.lz
yuzu-f5e03b9173268d2607b9db379fef93170212328a.tar.xz
yuzu-f5e03b9173268d2607b9db379fef93170212328a.tar.zst
yuzu-f5e03b9173268d2607b9db379fef93170212328a.zip
Diffstat (limited to '')
-rw-r--r--src/core/loader/loader.h20
1 files changed, 14 insertions, 6 deletions
diff --git a/src/core/loader/loader.h b/src/core/loader/loader.h
index be66b2257..b4a3a6573 100644
--- a/src/core/loader/loader.h
+++ b/src/core/loader/loader.h
@@ -107,6 +107,14 @@ enum class ResultStatus : u16 {
ErrorMissingSDSaveKeySource,
ErrorMissingSDNCAKeySource,
ErrorNSPMissingProgramNCA,
+ ErrorBadBKTRHeader,
+ ErrorBKTRSubsectionNotAfterRelocation,
+ ErrorBKTRSubsectionNotAtEnd,
+ ErrorBadRelocationBlock,
+ ErrorBadSubsectionBlock,
+ ErrorBadRelocationBuckets,
+ ErrorBadSubsectionBuckets,
+ ErrorMissingBKTRBaseRomFS,
};
std::ostream& operator<<(std::ostream& os, ResultStatus status);
@@ -197,13 +205,13 @@ public:
}
/**
- * Get the update RomFS of the application
- * Since the RomFS can be huge, we return a file reference instead of copying to a buffer
- * @param file The file containing the RomFS
- * @return ResultStatus result of function
+ * Get whether or not updates can be applied to the RomFS.
+ * By default, this is true, however for formats where it cannot be guaranteed that the RomFS is
+ * the base game it should be set to false.
+ * @return bool whether or not updatable.
*/
- virtual ResultStatus ReadUpdateRomFS(FileSys::VirtualFile& file) {
- return ResultStatus::ErrorNotImplemented;
+ virtual bool IsRomFSUpdatable() {
+ return true;
}
/**