summaryrefslogtreecommitdiffstats
path: root/src/core/loader/loader.cpp
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2017-09-24 17:08:31 +0200
committerbunnei <bunneidev@gmail.com>2017-09-30 20:32:53 +0200
commit6bafd3f4f754e093fe0f99ebf2e1136d3398981a (patch)
treed6021353217bfc01416a3b0f737389f103af9640 /src/core/loader/loader.cpp
parentexternals: Add lz4. (diff)
downloadyuzu-6bafd3f4f754e093fe0f99ebf2e1136d3398981a.tar
yuzu-6bafd3f4f754e093fe0f99ebf2e1136d3398981a.tar.gz
yuzu-6bafd3f4f754e093fe0f99ebf2e1136d3398981a.tar.bz2
yuzu-6bafd3f4f754e093fe0f99ebf2e1136d3398981a.tar.lz
yuzu-6bafd3f4f754e093fe0f99ebf2e1136d3398981a.tar.xz
yuzu-6bafd3f4f754e093fe0f99ebf2e1136d3398981a.tar.zst
yuzu-6bafd3f4f754e093fe0f99ebf2e1136d3398981a.zip
Diffstat (limited to 'src/core/loader/loader.cpp')
-rw-r--r--src/core/loader/loader.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/core/loader/loader.cpp b/src/core/loader/loader.cpp
index be719d74c..d309e7c9e 100644
--- a/src/core/loader/loader.cpp
+++ b/src/core/loader/loader.cpp
@@ -10,6 +10,7 @@
#include "core/loader/3dsx.h"
#include "core/loader/elf.h"
#include "core/loader/ncch.h"
+#include "core/loader/nso.h"
////////////////////////////////////////////////////////////////////////////////////////////////////
@@ -32,6 +33,7 @@ FileType IdentifyFile(FileUtil::IOFile& file) {
CHECK_TYPE(THREEDSX)
CHECK_TYPE(ELF)
CHECK_TYPE(NCCH)
+ CHECK_TYPE(NSO)
#undef CHECK_TYPE
@@ -115,6 +117,10 @@ static std::unique_ptr<AppLoader> GetFileLoader(FileUtil::IOFile&& file, FileTyp
case FileType::CCI:
return std::make_unique<AppLoader_NCCH>(std::move(file), filepath);
+ // NX NSO file format.
+ case FileType::NSO:
+ return std::make_unique<AppLoader_NSO>(std::move(file), filename, filepath);
+
default:
return nullptr;
}