summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2018-10-24 22:28:56 +0200
committerGitHub <noreply@github.com>2018-10-24 22:28:56 +0200
commitd14ba122e248c9036037f124f25a4ba067ee19bf (patch)
tree1c7ade5c594dfd7993812620764910dbd68891cc
parentMerge pull request #1560 from lioncash/unused (diff)
parentaoc_u: Make use of previously-unused CheckAOCTitleIDMatchesBase() function (diff)
downloadyuzu-d14ba122e248c9036037f124f25a4ba067ee19bf.tar
yuzu-d14ba122e248c9036037f124f25a4ba067ee19bf.tar.gz
yuzu-d14ba122e248c9036037f124f25a4ba067ee19bf.tar.bz2
yuzu-d14ba122e248c9036037f124f25a4ba067ee19bf.tar.lz
yuzu-d14ba122e248c9036037f124f25a4ba067ee19bf.tar.xz
yuzu-d14ba122e248c9036037f124f25a4ba067ee19bf.tar.zst
yuzu-d14ba122e248c9036037f124f25a4ba067ee19bf.zip
-rw-r--r--src/core/hle/service/aoc/aoc_u.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/core/hle/service/aoc/aoc_u.cpp b/src/core/hle/service/aoc/aoc_u.cpp
index 428069df2..54305cf05 100644
--- a/src/core/hle/service/aoc/aoc_u.cpp
+++ b/src/core/hle/service/aoc/aoc_u.cpp
@@ -24,8 +24,8 @@ namespace Service::AOC {
constexpr u64 DLC_BASE_TITLE_ID_MASK = 0xFFFFFFFFFFFFE000;
constexpr u64 DLC_BASE_TO_AOC_ID = 0x1000;
-static bool CheckAOCTitleIDMatchesBase(u64 base, u64 aoc) {
- return (aoc & DLC_BASE_TITLE_ID_MASK) == base;
+static bool CheckAOCTitleIDMatchesBase(u64 title_id, u64 base) {
+ return (title_id & DLC_BASE_TITLE_ID_MASK) == base;
}
static std::vector<u64> AccumulateAOCTitleIDs() {
@@ -74,7 +74,7 @@ void AOC_U::CountAddOnContent(Kernel::HLERequestContext& ctx) {
const auto current = Core::System::GetInstance().CurrentProcess()->GetTitleID();
rb.Push<u32>(static_cast<u32>(
std::count_if(add_on_content.begin(), add_on_content.end(),
- [&current](u64 tid) { return (tid & DLC_BASE_TITLE_ID_MASK) == current; })));
+ [current](u64 tid) { return CheckAOCTitleIDMatchesBase(tid, current); })));
}
void AOC_U::ListAddOnContent(Kernel::HLERequestContext& ctx) {