diff options
| author | 2016-05-06 21:42:13 +0300 | |
|---|---|---|
| committer | 2016-05-06 21:42:13 +0300 | |
| commit | d2182568ad7541078543c89a7ec4bd852b645228 (patch) | |
| tree | 7cb342e95e7f8184e98acd01b85167c823e18e1b /src | |
| parent | Merge pull request #1762 from bunnei/global (diff) | |
| download | yuzu-d2182568ad7541078543c89a7ec4bd852b645228.tar.gz yuzu-d2182568ad7541078543c89a7ec4bd852b645228.tar.xz yuzu-d2182568ad7541078543c89a7ec4bd852b645228.zip | |
fix:return proper error
Diffstat (limited to 'src')
| -rw-r--r-- | src/core/loader/loader.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/core/loader/loader.cpp b/src/core/loader/loader.cpp index 0d4c1d351..af3f62248 100644 --- a/src/core/loader/loader.cpp +++ b/src/core/loader/loader.cpp | |||
| @@ -144,11 +144,12 @@ ResultStatus LoadFile(const std::string& filename) { | |||
| 144 | case FileType::CCI: | 144 | case FileType::CCI: |
| 145 | { | 145 | { |
| 146 | // Load application and RomFS | 146 | // Load application and RomFS |
| 147 | if (ResultStatus::Success == app_loader->Load()) { | 147 | ResultStatus result = app_loader->Load(); |
| 148 | if (ResultStatus::Success == result) { | ||
| 148 | Service::FS::RegisterArchiveType(std::make_unique<FileSys::ArchiveFactory_RomFS>(*app_loader), Service::FS::ArchiveIdCode::RomFS); | 149 | Service::FS::RegisterArchiveType(std::make_unique<FileSys::ArchiveFactory_RomFS>(*app_loader), Service::FS::ArchiveIdCode::RomFS); |
| 149 | return ResultStatus::Success; | 150 | return ResultStatus::Success; |
| 150 | } | 151 | } |
| 151 | break; | 152 | return result; |
| 152 | } | 153 | } |
| 153 | 154 | ||
| 154 | // Standard ELF file format... | 155 | // Standard ELF file format... |