diff options
author | Yuri Kunde Schlesner <yuriks@yuriks.net> | 2015-07-12 00:16:33 +0200 |
---|---|---|
committer | Yuri Kunde Schlesner <yuriks@yuriks.net> | 2015-07-14 01:00:56 +0200 |
commit | 2d7299a86fdc4ba2485042f950d864e063be5e97 (patch) | |
tree | 26c15a7b8fe0563dc39dd80564c30405d458bfe7 /src/core/loader/ncch.h | |
parent | FS: Stream RomFS from file instead of loading all of it to memory (diff) | |
download | yuzu-2d7299a86fdc4ba2485042f950d864e063be5e97.tar yuzu-2d7299a86fdc4ba2485042f950d864e063be5e97.tar.gz yuzu-2d7299a86fdc4ba2485042f950d864e063be5e97.tar.bz2 yuzu-2d7299a86fdc4ba2485042f950d864e063be5e97.tar.lz yuzu-2d7299a86fdc4ba2485042f950d864e063be5e97.tar.xz yuzu-2d7299a86fdc4ba2485042f950d864e063be5e97.tar.zst yuzu-2d7299a86fdc4ba2485042f950d864e063be5e97.zip |
Diffstat (limited to '')
-rw-r--r-- | src/core/loader/ncch.h | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/core/loader/ncch.h b/src/core/loader/ncch.h index d180e77ed..b4374a476 100644 --- a/src/core/loader/ncch.h +++ b/src/core/loader/ncch.h @@ -163,7 +163,7 @@ namespace Loader { /// Loads an NCCH file (e.g. from a CCI, or the first NCCH in a CXI) class AppLoader_NCCH final : public AppLoader { public: - AppLoader_NCCH(std::unique_ptr<FileUtil::IOFile>&& file, const std::string& filepath) + AppLoader_NCCH(FileUtil::IOFile&& file, const std::string& filepath) : AppLoader(std::move(file)), filepath(filepath) { } /** @@ -184,35 +184,35 @@ public: * @param buffer Reference to buffer to store data * @return ResultStatus result of function */ - ResultStatus ReadCode(std::vector<u8>& buffer) const override; + ResultStatus ReadCode(std::vector<u8>& buffer) override; /** * Get the icon (typically icon section) of the application * @param buffer Reference to buffer to store data * @return ResultStatus result of function */ - ResultStatus ReadIcon(std::vector<u8>& buffer) const override; + ResultStatus ReadIcon(std::vector<u8>& buffer) override; /** * Get the banner (typically banner section) of the application * @param buffer Reference to buffer to store data * @return ResultStatus result of function */ - ResultStatus ReadBanner(std::vector<u8>& buffer) const override; + ResultStatus ReadBanner(std::vector<u8>& buffer) override; /** * Get the logo (typically logo section) of the application * @param buffer Reference to buffer to store data * @return ResultStatus result of function */ - ResultStatus ReadLogo(std::vector<u8>& buffer) const override; + ResultStatus ReadLogo(std::vector<u8>& buffer) override; /** * Get the RomFS of the application * @param buffer Reference to buffer to store data * @return ResultStatus result of function */ - ResultStatus ReadRomFS(std::shared_ptr<FileUtil::IOFile>& romfs_file, u64& offset, u64& size) const override; + ResultStatus ReadRomFS(std::shared_ptr<FileUtil::IOFile>& romfs_file, u64& offset, u64& size) override; private: @@ -222,13 +222,13 @@ private: * @param buffer Vector to read data into * @return ResultStatus result of function */ - ResultStatus LoadSectionExeFS(const char* name, std::vector<u8>& buffer) const; + ResultStatus LoadSectionExeFS(const char* name, std::vector<u8>& buffer); /** * Loads .code section into memory for booting * @return ResultStatus result of function */ - ResultStatus LoadExec() const; + ResultStatus LoadExec(); bool is_compressed = false; |