diff options
| author | 2015-01-06 19:49:25 +0000 | |
|---|---|---|
| committer | 2015-01-15 21:21:26 +0000 | |
| commit | 85030c6e6bfe83b6671de45b25535fe3ef713319 (patch) | |
| tree | 03a9735f1c306c4679359b64b29013a9d350bfde /src/core/loader/ncch.cpp | |
| parent | Loader: Don’t duplicate the docstring into the cpp file. (diff) | |
| download | yuzu-85030c6e6bfe83b6671de45b25535fe3ef713319.tar.gz yuzu-85030c6e6bfe83b6671de45b25535fe3ef713319.tar.xz yuzu-85030c6e6bfe83b6671de45b25535fe3ef713319.zip | |
Loader: Never forget to change is_loaded.
Diffstat (limited to 'src/core/loader/ncch.cpp')
| -rw-r--r-- | src/core/loader/ncch.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/core/loader/ncch.cpp b/src/core/loader/ncch.cpp index f1d01252e..0793cc7cd 100644 --- a/src/core/loader/ncch.cpp +++ b/src/core/loader/ncch.cpp | |||
| @@ -102,7 +102,6 @@ static bool LZSS_Decompress(u8* compressed, u32 compressed_size, u8* decompresse | |||
| 102 | /// AppLoader_NCCH constructor | 102 | /// AppLoader_NCCH constructor |
| 103 | AppLoader_NCCH::AppLoader_NCCH(const std::string& filename) { | 103 | AppLoader_NCCH::AppLoader_NCCH(const std::string& filename) { |
| 104 | this->filename = filename; | 104 | this->filename = filename; |
| 105 | is_loaded = false; | ||
| 106 | is_compressed = false; | 105 | is_compressed = false; |
| 107 | entry_point = 0; | 106 | entry_point = 0; |
| 108 | ncch_offset = 0; | 107 | ncch_offset = 0; |
| @@ -221,10 +220,10 @@ ResultStatus AppLoader_NCCH::Load() { | |||
| 221 | file.Seek(exefs_offset + ncch_offset, 0); | 220 | file.Seek(exefs_offset + ncch_offset, 0); |
| 222 | file.ReadBytes(&exefs_header, sizeof(ExeFs_Header)); | 221 | file.ReadBytes(&exefs_header, sizeof(ExeFs_Header)); |
| 223 | 222 | ||
| 224 | is_loaded = true; // Set state to loaded | ||
| 225 | |||
| 226 | LoadExec(); // Load the executable into memory for booting | 223 | LoadExec(); // Load the executable into memory for booting |
| 227 | 224 | ||
| 225 | is_loaded = true; // Set state to loaded | ||
| 226 | |||
| 228 | return ResultStatus::Success; | 227 | return ResultStatus::Success; |
| 229 | } else { | 228 | } else { |
| 230 | LOG_ERROR(Loader, "Unable to read file %s!", filename.c_str()); | 229 | LOG_ERROR(Loader, "Unable to read file %s!", filename.c_str()); |