summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2016-05-06 21:42:08 +0200
committerbunnei <bunneidev@gmail.com>2016-05-06 21:42:08 +0200
commit14b4d971a40e23db35f5356a3df78a524d2f3306 (patch)
tree7cb342e95e7f8184e98acd01b85167c823e18e1b
parentMerge pull request #1762 from bunnei/global (diff)
parentfix:return proper error (diff)
downloadyuzu-14b4d971a40e23db35f5356a3df78a524d2f3306.tar
yuzu-14b4d971a40e23db35f5356a3df78a524d2f3306.tar.gz
yuzu-14b4d971a40e23db35f5356a3df78a524d2f3306.tar.bz2
yuzu-14b4d971a40e23db35f5356a3df78a524d2f3306.tar.lz
yuzu-14b4d971a40e23db35f5356a3df78a524d2f3306.tar.xz
yuzu-14b4d971a40e23db35f5356a3df78a524d2f3306.tar.zst
yuzu-14b4d971a40e23db35f5356a3df78a524d2f3306.zip
-rw-r--r--src/core/loader/loader.cpp5
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) {
case FileType::CCI:
{
// Load application and RomFS
- if (ResultStatus::Success == app_loader->Load()) {
+ ResultStatus result = app_loader->Load();
+ if (ResultStatus::Success == result) {
Service::FS::RegisterArchiveType(std::make_unique<FileSys::ArchiveFactory_RomFS>(*app_loader), Service::FS::ArchiveIdCode::RomFS);
return ResultStatus::Success;
}
- break;
+ return result;
}
// Standard ELF file format...