summaryrefslogtreecommitdiff
path: root/src/core/loader/3dsx.h
diff options
context:
space:
mode:
authorGravatar bunnei2015-09-21 21:14:18 -0400
committerGravatar bunnei2015-09-21 21:14:18 -0400
commitb58a48d7964a30d3c334a7eaf41c658579c37638 (patch)
tree2b2ec9ae8db37137e5fd9c2a6c93f7d7c38984b7 /src/core/loader/3dsx.h
parentMerge pull request #1097 from yuriks/cfg-blocks (diff)
parentImplement 3dsx RomFS (diff)
downloadyuzu-b58a48d7964a30d3c334a7eaf41c658579c37638.tar.gz
yuzu-b58a48d7964a30d3c334a7eaf41c658579c37638.tar.xz
yuzu-b58a48d7964a30d3c334a7eaf41c658579c37638.zip
Merge pull request #1167 from Cruel/master
Implement 3dsx RomFS
Diffstat (limited to 'src/core/loader/3dsx.h')
-rw-r--r--src/core/loader/3dsx.h14
1 files changed, 12 insertions, 2 deletions
diff --git a/src/core/loader/3dsx.h b/src/core/loader/3dsx.h
index a0aa0c533..365ddb7a5 100644
--- a/src/core/loader/3dsx.h
+++ b/src/core/loader/3dsx.h
@@ -17,8 +17,8 @@ namespace Loader {
17/// Loads an 3DSX file 17/// Loads an 3DSX file
18class AppLoader_THREEDSX final : public AppLoader { 18class AppLoader_THREEDSX final : public AppLoader {
19public: 19public:
20 AppLoader_THREEDSX(FileUtil::IOFile&& file, std::string filename) 20 AppLoader_THREEDSX(FileUtil::IOFile&& file, std::string filename, const std::string& filepath)
21 : AppLoader(std::move(file)), filename(std::move(filename)) {} 21 : AppLoader(std::move(file)), filename(std::move(filename)), filepath(filepath) {}
22 22
23 /** 23 /**
24 * Returns the type of the file 24 * Returns the type of the file
@@ -33,8 +33,18 @@ public:
33 */ 33 */
34 ResultStatus Load() override; 34 ResultStatus Load() override;
35 35
36 /**
37 * Get the RomFS of the application
38 * @param romfs_file Reference to buffer to store data
39 * @param offset Offset in the file to the RomFS
40 * @param size Size of the RomFS in bytes
41 * @return ResultStatus result of function
42 */
43 ResultStatus ReadRomFS(std::shared_ptr<FileUtil::IOFile>& romfs_file, u64& offset, u64& size) override;
44
36private: 45private:
37 std::string filename; 46 std::string filename;
47 std::string filepath;
38}; 48};
39 49
40} // namespace Loader 50} // namespace Loader