diff options
author | bunnei <bunneidev@gmail.com> | 2014-07-04 13:11:09 -0400 |
---|---|---|
committer | bunnei <bunneidev@gmail.com> | 2014-07-04 20:37:49 -0400 |
commit | 2c62d9255160b7302942d536c9c990b86c7fb907 (patch) | |
tree | 65496725f1557dd58f866a0313012ba4ed5f6aa3 /src/core/loader/ncch.h | |
parent | 1ccdb6a76903f3948435a13ca20795baf8801435 (diff) |
Loader: Updated read methods to be const
- Required "file" handle to be made local and explicitly opened/closed as needed
Diffstat (limited to 'src/core/loader/ncch.h')
-rw-r--r-- | src/core/loader/ncch.h | 15 |
1 files changed, 7 insertions, 8 deletions
diff --git a/src/core/loader/ncch.h b/src/core/loader/ncch.h index 99753b244..c9a35228e 100644 --- a/src/core/loader/ncch.h +++ b/src/core/loader/ncch.h @@ -161,35 +161,35 @@ public: * @param buffer Reference to buffer to store data * @return ResultStatus result of function */ - ResultStatus ReadCode(std::vector<u8>& buffer); + ResultStatus ReadCode(std::vector<u8>& buffer) const; /** * 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); + ResultStatus ReadIcon(std::vector<u8>& buffer) const; /** * 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); + ResultStatus ReadBanner(std::vector<u8>& buffer) const; /** * 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); + ResultStatus ReadLogo(std::vector<u8>& buffer) const; /** * Get the RomFS of the application * @param buffer Reference to buffer to store data * @return ResultStatus result of function */ - ResultStatus ReadRomFS(std::vector<u8>& buffer); + ResultStatus ReadRomFS(std::vector<u8>& buffer) const; private: @@ -199,15 +199,14 @@ private: * @param buffer Vector to read data into * @return ResultStatus result of function */ - ResultStatus LoadSectionExeFS(const char* name, std::vector<u8>& buffer); + ResultStatus LoadSectionExeFS(const char* name, std::vector<u8>& buffer) const; /** * Loads .code section into memory for booting * @return ResultStatus result of function */ - ResultStatus LoadExec(); + ResultStatus LoadExec() const; - File::IOFile file; std::string filename; bool is_loaded; |