diff options
author | Morph <39850852+Morph1984@users.noreply.github.com> | 2020-12-04 07:41:21 +0100 |
---|---|---|
committer | Morph <39850852+Morph1984@users.noreply.github.com> | 2020-12-08 14:19:05 +0100 |
commit | 0eb6c6cd836028a94260321e460871c228deee50 (patch) | |
tree | 1f32afb694eae681c5d5936efe751f0f0d3cb972 /src/core/file_sys/patch_manager.cpp | |
parent | Merge pull request #5165 from lioncash/copy-controller (diff) | |
download | yuzu-0eb6c6cd836028a94260321e460871c228deee50.tar yuzu-0eb6c6cd836028a94260321e460871c228deee50.tar.gz yuzu-0eb6c6cd836028a94260321e460871c228deee50.tar.bz2 yuzu-0eb6c6cd836028a94260321e460871c228deee50.tar.lz yuzu-0eb6c6cd836028a94260321e460871c228deee50.tar.xz yuzu-0eb6c6cd836028a94260321e460871c228deee50.tar.zst yuzu-0eb6c6cd836028a94260321e460871c228deee50.zip |
Diffstat (limited to '')
-rw-r--r-- | src/core/file_sys/patch_manager.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/core/file_sys/patch_manager.cpp b/src/core/file_sys/patch_manager.cpp index e9d1607d0..7c3284df8 100644 --- a/src/core/file_sys/patch_manager.cpp +++ b/src/core/file_sys/patch_manager.cpp @@ -12,6 +12,7 @@ #include "common/logging/log.h" #include "common/string_util.h" #include "core/core.h" +#include "core/file_sys/common_funcs.h" #include "core/file_sys/content_archive.h" #include "core/file_sys/control_metadata.h" #include "core/file_sys/ips_layer.h" @@ -30,7 +31,6 @@ namespace FileSys { namespace { constexpr u32 SINGLE_BYTE_MODULUS = 0x100; -constexpr u64 DLC_BASE_TITLE_ID_MASK = 0xFFFFFFFFFFFFE000; constexpr std::array<const char*, 14> EXEFS_FILE_NAMES{ "main", "main.npdm", "rtld", "sdk", "subsdk0", "subsdk1", "subsdk2", @@ -532,7 +532,7 @@ PatchManager::PatchVersionNames PatchManager::GetPatchVersionNames(VirtualFile u dlc_match.reserve(dlc_entries.size()); std::copy_if(dlc_entries.begin(), dlc_entries.end(), std::back_inserter(dlc_match), [this](const ContentProviderEntry& entry) { - return (entry.title_id & DLC_BASE_TITLE_ID_MASK) == title_id && + return GetBaseTitleID(entry.title_id) == title_id && content_provider.GetEntry(entry)->GetStatus() == Loader::ResultStatus::Success; }); |