summaryrefslogtreecommitdiffstats
path: root/src/core/loader/loader.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/core/loader/loader.cpp')
-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...