diff options
| author | 2017-10-05 23:30:08 -0400 | |
|---|---|---|
| committer | 2017-10-05 23:30:08 -0400 | |
| commit | 33ea53094cc1f34c27ca295472f01f8dd09a300b (patch) | |
| tree | c45a8eefd68222c390b28ab2dfba3d787c4634ac /src/core/loader/loader.cpp | |
| parent | nso: Fixes to support homebrew NSOs without a MOD header. (diff) | |
| download | yuzu-33ea53094cc1f34c27ca295472f01f8dd09a300b.tar.gz yuzu-33ea53094cc1f34c27ca295472f01f8dd09a300b.tar.xz yuzu-33ea53094cc1f34c27ca295472f01f8dd09a300b.zip | |
loader: Add support for NRO, as well as various fixes and shared linker.
Diffstat (limited to 'src/core/loader/loader.cpp')
| -rw-r--r-- | src/core/loader/loader.cpp | 6 |
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 @@ | |||
| 10 | #include "core/loader/3dsx.h" | 10 | #include "core/loader/3dsx.h" |
| 11 | #include "core/loader/elf.h" | 11 | #include "core/loader/elf.h" |
| 12 | #include "core/loader/ncch.h" | 12 | #include "core/loader/ncch.h" |
| 13 | #include "core/loader/nro.h" | ||
| 13 | #include "core/loader/nso.h" | 14 | #include "core/loader/nso.h" |
| 14 | 15 | ||
| 15 | //////////////////////////////////////////////////////////////////////////////////////////////////// | 16 | //////////////////////////////////////////////////////////////////////////////////////////////////// |
| @@ -34,6 +35,7 @@ FileType IdentifyFile(FileUtil::IOFile& file) { | |||
| 34 | CHECK_TYPE(ELF) | 35 | CHECK_TYPE(ELF) |
| 35 | CHECK_TYPE(NCCH) | 36 | CHECK_TYPE(NCCH) |
| 36 | CHECK_TYPE(NSO) | 37 | CHECK_TYPE(NSO) |
| 38 | CHECK_TYPE(NRO) | ||
| 37 | 39 | ||
| 38 | #undef CHECK_TYPE | 40 | #undef CHECK_TYPE |
| 39 | 41 | ||
| @@ -121,6 +123,10 @@ static std::unique_ptr<AppLoader> GetFileLoader(FileUtil::IOFile&& file, FileTyp | |||
| 121 | case FileType::NSO: | 123 | case FileType::NSO: |
| 122 | return std::make_unique<AppLoader_NSO>(std::move(file), filename, filepath); | 124 | return std::make_unique<AppLoader_NSO>(std::move(file), filename, filepath); |
| 123 | 125 | ||
| 126 | // NX NRO file format. | ||
| 127 | case FileType::NRO: | ||
| 128 | return std::make_unique<AppLoader_NRO>(std::move(file), filename, filepath); | ||
| 129 | |||
| 124 | default: | 130 | default: |
| 125 | return nullptr; | 131 | return nullptr; |
| 126 | } | 132 | } |