diff options
author | bunnei <ericbunnie@gmail.com> | 2014-06-19 17:46:05 -0400 |
---|---|---|
committer | bunnei <ericbunnie@gmail.com> | 2014-06-24 19:30:06 -0400 |
commit | 62b444cd17c17e6f8009d87609b620bcb51b43bd (patch) | |
tree | c99a07441b97232f8f90f9ec06a0291a1ce5c396 /src/core/loader/ncch.h | |
parent | a8c46485203d3ab00ef478bbf9daa7450df14dfd (diff) |
Loader: Refactored use of const.
Diffstat (limited to 'src/core/loader/ncch.h')
-rw-r--r-- | src/core/loader/ncch.h | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/src/core/loader/ncch.h b/src/core/loader/ncch.h index 939b144a6..126eb4c80 100644 --- a/src/core/loader/ncch.h +++ b/src/core/loader/ncch.h @@ -147,14 +147,14 @@ namespace Loader { /// Loads an NCCH file (e.g. from a CCI, or the first NCCH in a CXI) class AppLoader_NCCH : public AppLoader { public: - AppLoader_NCCH(std::string& filename); + AppLoader_NCCH(const std::string& filename); ~AppLoader_NCCH(); /** * Load the application * @return ResultStatus result of function */ - const ResultStatus Load(); + ResultStatus Load(); private: @@ -165,21 +165,20 @@ private: * @param buffer Buffer to read section into. * @return ResultStatus result of function */ - const ResultStatus LoadSectionExeFS(File::IOFile& file, const char* name, - std::vector<u8>& buffer); + ResultStatus LoadSectionExeFS(File::IOFile& file, const char* name, std::vector<u8>& buffer); /** * Reads RomFS of an NCCH file into AppLoader * @param file Handle to file to read from * @return ResultStatus result of function */ - const ResultStatus LoadRomFS(File::IOFile& file); + ResultStatus LoadRomFS(File::IOFile& file); /** * Loads .code section into memory for booting * @return ResultStatus result of function */ - const ResultStatus LoadExec() const; + ResultStatus LoadExec() const; std::string filename; bool is_loaded; |