summaryrefslogtreecommitdiffstats
path: root/src/core/loader/loader.cpp
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2017-10-06 05:30:08 +0200
committerbunnei <bunneidev@gmail.com>2017-10-06 05:30:08 +0200
commit33ea53094cc1f34c27ca295472f01f8dd09a300b (patch)
treec45a8eefd68222c390b28ab2dfba3d787c4634ac /src/core/loader/loader.cpp
parentnso: Fixes to support homebrew NSOs without a MOD header. (diff)
downloadyuzu-33ea53094cc1f34c27ca295472f01f8dd09a300b.tar
yuzu-33ea53094cc1f34c27ca295472f01f8dd09a300b.tar.gz
yuzu-33ea53094cc1f34c27ca295472f01f8dd09a300b.tar.bz2
yuzu-33ea53094cc1f34c27ca295472f01f8dd09a300b.tar.lz
yuzu-33ea53094cc1f34c27ca295472f01f8dd09a300b.tar.xz
yuzu-33ea53094cc1f34c27ca295472f01f8dd09a300b.tar.zst
yuzu-33ea53094cc1f34c27ca295472f01f8dd09a300b.zip
Diffstat (limited to '')
-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 d309e7c9e..d96b9f1f0 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/nro.h"
#include "core/loader/nso.h"
////////////////////////////////////////////////////////////////////////////////////////////////////
@@ -34,6 +35,7 @@ FileType IdentifyFile(FileUtil::IOFile& file) {
CHECK_TYPE(ELF)
CHECK_TYPE(NCCH)
CHECK_TYPE(NSO)
+ CHECK_TYPE(NRO)
#undef CHECK_TYPE
@@ -121,6 +123,10 @@ static std::unique_ptr<AppLoader> GetFileLoader(FileUtil::IOFile&& file, FileTyp
case FileType::NSO:
return std::make_unique<AppLoader_NSO>(std::move(file), filename, filepath);
+ // NX NRO file format.
+ case FileType::NRO:
+ return std::make_unique<AppLoader_NRO>(std::move(file), filename, filepath);
+
default:
return nullptr;
}