summaryrefslogtreecommitdiff
path: root/src/core/loader/ncch.h
diff options
context:
space:
mode:
authorGravatar bunnei2014-06-19 17:46:05 -0400
committerGravatar bunnei2014-06-24 19:30:06 -0400
commit62b444cd17c17e6f8009d87609b620bcb51b43bd (patch)
treec99a07441b97232f8f90f9ec06a0291a1ce5c396 /src/core/loader/ncch.h
parentNCCH: Added RomFS loading. (diff)
downloadyuzu-62b444cd17c17e6f8009d87609b620bcb51b43bd.tar.gz
yuzu-62b444cd17c17e6f8009d87609b620bcb51b43bd.tar.xz
yuzu-62b444cd17c17e6f8009d87609b620bcb51b43bd.zip
Loader: Refactored use of const.
Diffstat (limited to 'src/core/loader/ncch.h')
-rw-r--r--src/core/loader/ncch.h11
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 {
147/// Loads an NCCH file (e.g. from a CCI, or the first NCCH in a CXI) 147/// Loads an NCCH file (e.g. from a CCI, or the first NCCH in a CXI)
148class AppLoader_NCCH : public AppLoader { 148class AppLoader_NCCH : public AppLoader {
149public: 149public:
150 AppLoader_NCCH(std::string& filename); 150 AppLoader_NCCH(const std::string& filename);
151 ~AppLoader_NCCH(); 151 ~AppLoader_NCCH();
152 152
153 /** 153 /**
154 * Load the application 154 * Load the application
155 * @return ResultStatus result of function 155 * @return ResultStatus result of function
156 */ 156 */
157 const ResultStatus Load(); 157 ResultStatus Load();
158 158
159private: 159private:
160 160
@@ -165,21 +165,20 @@ private:
165 * @param buffer Buffer to read section into. 165 * @param buffer Buffer to read section into.
166 * @return ResultStatus result of function 166 * @return ResultStatus result of function
167 */ 167 */
168 const ResultStatus LoadSectionExeFS(File::IOFile& file, const char* name, 168 ResultStatus LoadSectionExeFS(File::IOFile& file, const char* name, std::vector<u8>& buffer);
169 std::vector<u8>& buffer);
170 169
171 /** 170 /**
172 * Reads RomFS of an NCCH file into AppLoader 171 * Reads RomFS of an NCCH file into AppLoader
173 * @param file Handle to file to read from 172 * @param file Handle to file to read from
174 * @return ResultStatus result of function 173 * @return ResultStatus result of function
175 */ 174 */
176 const ResultStatus LoadRomFS(File::IOFile& file); 175 ResultStatus LoadRomFS(File::IOFile& file);
177 176
178 /** 177 /**
179 * Loads .code section into memory for booting 178 * Loads .code section into memory for booting
180 * @return ResultStatus result of function 179 * @return ResultStatus result of function
181 */ 180 */
182 const ResultStatus LoadExec() const; 181 ResultStatus LoadExec() const;
183 182
184 std::string filename; 183 std::string filename;
185 bool is_loaded; 184 bool is_loaded;