diff options
author | bunnei <bunneidev@gmail.com> | 2014-11-19 15:24:46 -0500 |
---|---|---|
committer | bunnei <bunneidev@gmail.com> | 2014-11-19 15:24:46 -0500 |
commit | c0cd0fa78edc37795176c6fb45a52c1d015f3690 (patch) | |
tree | 237f15dd9d986309000c995fde07088625e62239 /src/core/loader/ncch.cpp | |
parent | 112768f4365816d345b0dc9b93bfecc3d41a69b5 (diff) | |
parent | 739bb58c3a92ba94baeaa2156dc72fb7ff0ce8b7 (diff) |
Merge pull request #211 from linkmauve/master
Remove trailing spaces from the entire project
Diffstat (limited to 'src/core/loader/ncch.cpp')
-rw-r--r-- | src/core/loader/ncch.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/core/loader/ncch.cpp b/src/core/loader/ncch.cpp index 5b6f88604..343bb7523 100644 --- a/src/core/loader/ncch.cpp +++ b/src/core/loader/ncch.cpp @@ -118,7 +118,7 @@ AppLoader_NCCH::~AppLoader_NCCH() { * @return ResultStatus result of function */ ResultStatus AppLoader_NCCH::LoadExec() const { - if (!is_loaded) + if (!is_loaded) return ResultStatus::ErrorNotLoaded; std::vector<u8> code; @@ -185,7 +185,7 @@ ResultStatus AppLoader_NCCH::LoadSectionExeFS(const char* name, std::vector<u8>& return ResultStatus::Error; } return ResultStatus::ErrorNotUsed; -} +} /** * Loads an NCCH file (e.g. from a CCI, or the first NCCH in a CXI) @@ -210,7 +210,7 @@ ResultStatus AppLoader_NCCH::Load() { file.Seek(ncch_offset, 0); file.ReadBytes(&ncch_header, sizeof(NCCH_Header)); } - + // Verify we are loading the correct file type... if (0 != memcmp(&ncch_header.magic, "NCCH", 4)) return ResultStatus::ErrorInvalidFormat; |