diff options
author | bunnei <[email protected]> | 2018-01-20 14:59:17 -0500 |
---|---|---|
committer | bunnei <[email protected]> | 2018-01-20 15:54:15 -0500 |
commit | e75aba3ed0eb0933c023f955d4c2e53e58ef6a5f (patch) | |
tree | 4ef2b528a335d3da15a678afb4a60df490bc5037 /src/core/loader/loader.cpp | |
parent | 023aef053c96c92c9ea15d067f7d2cb7150585d6 (diff) | |
download | yuzu-android-e75aba3ed0eb0933c023f955d4c2e53e58ef6a5f.tar.gz yuzu-android-e75aba3ed0eb0933c023f955d4c2e53e58ef6a5f.zip |
loader: Add DeconstructedRomDirectory for game dumps.
Diffstat (limited to 'src/core/loader/loader.cpp')
-rw-r--r-- | src/core/loader/loader.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/core/loader/loader.cpp b/src/core/loader/loader.cpp index 2ecccdd4f..9d87b07d7 100644 --- a/src/core/loader/loader.cpp +++ b/src/core/loader/loader.cpp @@ -7,6 +7,7 @@ #include "common/logging/log.h" #include "common/string_util.h" #include "core/hle/kernel/process.h" +#include "core/loader/deconstructed_rom_directory.h" #include "core/loader/elf.h" #include "core/loader/nro.h" #include "core/loader/nso.h" @@ -29,6 +30,7 @@ FileType IdentifyFile(FileUtil::IOFile& file, const std::string& filepath) { if (FileType::Error != type) \ return type; + CHECK_TYPE(DeconstructedRomDirectory) CHECK_TYPE(ELF) CHECK_TYPE(NSO) CHECK_TYPE(NRO) @@ -69,6 +71,8 @@ const char* GetFileTypeString(FileType type) { return "NRO"; case FileType::NSO: return "NSO"; + case FileType::DeconstructedRomDirectory: + return "Directory"; case FileType::Error: case FileType::Unknown: break; @@ -102,6 +106,10 @@ static std::unique_ptr<AppLoader> GetFileLoader(FileUtil::IOFile&& file, FileTyp case FileType::NRO: return std::make_unique<AppLoader_NRO>(std::move(file), filepath); + // NX deconstructed ROM directory. + case FileType::DeconstructedRomDirectory: + return std::make_unique<AppLoader_DeconstructedRomDirectory>(std::move(file), filepath); + default: return nullptr; } |