summaryrefslogtreecommitdiffstats
path: root/src/core
diff options
context:
space:
mode:
authorLittleWhite <lw.demoscene@googlemail.com>2016-01-07 18:36:10 +0100
committerLittleWhite <lw.demoscene@googlemail.com>2016-03-03 22:52:29 +0100
commit7ad669a9115dfaf3271487269d8d8bcdf2c51e03 (patch)
tree2d8de106475388e6fb9fdd6f42f51a829ef9a5c0 /src/core
parentMerge pull request #1446 from vitorsilverio/patch-2 (diff)
downloadyuzu-7ad669a9115dfaf3271487269d8d8bcdf2c51e03.tar
yuzu-7ad669a9115dfaf3271487269d8d8bcdf2c51e03.tar.gz
yuzu-7ad669a9115dfaf3271487269d8d8bcdf2c51e03.tar.bz2
yuzu-7ad669a9115dfaf3271487269d8d8bcdf2c51e03.tar.lz
yuzu-7ad669a9115dfaf3271487269d8d8bcdf2c51e03.tar.xz
yuzu-7ad669a9115dfaf3271487269d8d8bcdf2c51e03.tar.zst
yuzu-7ad669a9115dfaf3271487269d8d8bcdf2c51e03.zip
Diffstat (limited to 'src/core')
-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 6b88169e1..99f1183ca 100644
--- a/src/core/loader/loader.cpp
+++ b/src/core/loader/loader.cpp
@@ -137,11 +137,12 @@ ResultStatus LoadFile(const std::string& filename) {
AppLoader_NCCH app_loader(std::move(file), filename);
// Load application and RomFS
- if (ResultStatus::Success == app_loader.Load()) {
+ ResultStatus result = app_loader.Load();
+ if (ResultStatus::Success == result) {
Service::FS::RegisterArchiveType(Common::make_unique<FileSys::ArchiveFactory_RomFS>(app_loader), Service::FS::ArchiveIdCode::RomFS);
return ResultStatus::Success;
}
- break;
+ return result;
}
// CIA file format...