summaryrefslogtreecommitdiffstats
path: root/src/core/loader/loader.h
diff options
context:
space:
mode:
authorZach Hilman <zachhilman@gmail.com>2018-09-25 15:18:55 +0200
committerZach Hilman <zachhilman@gmail.com>2018-10-05 14:46:31 +0200
commit504574882914902f0648e30078038472ae985570 (patch)
treebfa46c9144c1f0f1a5e2375c74996fd1065dbec6 /src/core/loader/loader.h
parentloader: Add ReadRomFSIVFCOffset to NSP, XCI, and NAX loaders (diff)
downloadyuzu-504574882914902f0648e30078038472ae985570.tar
yuzu-504574882914902f0648e30078038472ae985570.tar.gz
yuzu-504574882914902f0648e30078038472ae985570.tar.bz2
yuzu-504574882914902f0648e30078038472ae985570.tar.lz
yuzu-504574882914902f0648e30078038472ae985570.tar.xz
yuzu-504574882914902f0648e30078038472ae985570.tar.zst
yuzu-504574882914902f0648e30078038472ae985570.zip
Diffstat (limited to '')
-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 {
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;
}