aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/core/loader/loader.h
diff options
context:
space:
mode:
authorGravatar condut <>2015-07-10 00:55:23 +0300
committerGravatar Yuri Kunde Schlesner <yuriks@yuriks.net>2015-07-13 19:57:12 -0300
commitc385b7767d32eccabbfeaa12764310cfc3d113b9 (patch)
tree1868679b3e7c30c05eb76d5e1f09fd01c86e3e65 /src/core/loader/loader.h
parentecdfd0643a02ab9855f5674fee7475a7c15a0085 (diff)
FS: Stream RomFS from file instead of loading all of it to memory
Diffstat (limited to 'src/core/loader/loader.h')
-rw-r--r--src/core/loader/loader.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/core/loader/loader.h b/src/core/loader/loader.h
index 52bbf35b..ff298222 100644
--- a/src/core/loader/loader.h
+++ b/src/core/loader/loader.h
@@ -99,10 +99,13 @@ public:
/**
* Get the RomFS of the application
- * @param buffer Reference to buffer to store data
+ * Since the RomFS can be huge, we return a file reference instead of copying to a buffer
+ * @param romfs_file The file containing the RomFS
+ * @param offset The offset the romfs begins on
+ * @param size The size of the romfs
* @return ResultStatus result of function
*/
- virtual ResultStatus ReadRomFS(std::vector<u8>& buffer) const {
+ virtual ResultStatus ReadRomFS(std::shared_ptr<FileUtil::IOFile>& romfs_file, u64& offset, u64& size) const {
return ResultStatus::ErrorNotImplemented;
}