diff options
author | yuzubot <[email protected]> | 2024-03-04 00:57:21 +0000 |
---|---|---|
committer | yuzubot <[email protected]> | 2024-03-04 00:57:21 +0000 |
commit | 1869349dcea9949fd48be2c16f9f0e8712d2e15e (patch) | |
tree | 7afe7c02a1229f3ba90a7c03b2dd7603de2246f3 /src/core/loader | |
parent | 70711ddb39cf43af2307d5962e5380c5e0bbb365 (diff) | |
download | yuzu-android-1869349dcea9949fd48be2c16f9f0e8712d2e15e.tar.gz yuzu-android-1869349dcea9949fd48be2c16f9f0e8712d2e15e.zip |
Merge yuzu-emu#13177
Diffstat (limited to 'src/core/loader')
-rw-r--r-- | src/core/loader/loader.cpp | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/src/core/loader/loader.cpp b/src/core/loader/loader.cpp index b6e355622..6aabdc75e 100644 --- a/src/core/loader/loader.cpp +++ b/src/core/loader/loader.cpp @@ -36,22 +36,23 @@ std::optional<FileType> IdentifyFileLoader(FileSys::VirtualFile file) { } // namespace FileType IdentifyFile(FileSys::VirtualFile file) { - if (const auto romdir_type = IdentifyFileLoader<AppLoader_DeconstructedRomDirectory>(file)) { - return *romdir_type; - } else if (const auto nso_type = IdentifyFileLoader<AppLoader_NSO>(file)) { - return *nso_type; + if (const auto nsp_type = IdentifyFileLoader<AppLoader_NSP>(file)) { + return *nsp_type; + } else if (const auto xci_type = IdentifyFileLoader<AppLoader_XCI>(file)) { + return *xci_type; } else if (const auto nro_type = IdentifyFileLoader<AppLoader_NRO>(file)) { return *nro_type; } else if (const auto nca_type = IdentifyFileLoader<AppLoader_NCA>(file)) { return *nca_type; - } else if (const auto xci_type = IdentifyFileLoader<AppLoader_XCI>(file)) { - return *xci_type; } else if (const auto nax_type = IdentifyFileLoader<AppLoader_NAX>(file)) { return *nax_type; - } else if (const auto nsp_type = IdentifyFileLoader<AppLoader_NSP>(file)) { - return *nsp_type; } else if (const auto kip_type = IdentifyFileLoader<AppLoader_KIP>(file)) { return *kip_type; + } else if (const auto nso_type = IdentifyFileLoader<AppLoader_NSO>(file)) { + return *nso_type; + } else if (const auto romdir_type = + IdentifyFileLoader<AppLoader_DeconstructedRomDirectory>(file)) { + return *romdir_type; } else { return FileType::Unknown; } |