summaryrefslogtreecommitdiffstats
path: root/src/core/hle
diff options
context:
space:
mode:
authorLioncash <mathew1800@gmail.com>2019-05-23 06:26:17 +0200
committerLioncash <mathew1800@gmail.com>2019-05-23 06:26:21 +0200
commit3e7d37301a4c3ce68f0f20e702b35e97656108fc (patch)
treed39f7df32474e3561676d47ed5eb19996c52359d /src/core/hle
parentservice/aoc: Remove unnecessary includes (diff)
downloadyuzu-3e7d37301a4c3ce68f0f20e702b35e97656108fc.tar
yuzu-3e7d37301a4c3ce68f0f20e702b35e97656108fc.tar.gz
yuzu-3e7d37301a4c3ce68f0f20e702b35e97656108fc.tar.bz2
yuzu-3e7d37301a4c3ce68f0f20e702b35e97656108fc.tar.lz
yuzu-3e7d37301a4c3ce68f0f20e702b35e97656108fc.tar.xz
yuzu-3e7d37301a4c3ce68f0f20e702b35e97656108fc.tar.zst
yuzu-3e7d37301a4c3ce68f0f20e702b35e97656108fc.zip
Diffstat (limited to 'src/core/hle')
-rw-r--r--src/core/hle/service/aoc/aoc_u.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/core/hle/service/aoc/aoc_u.cpp b/src/core/hle/service/aoc/aoc_u.cpp
index 5838be3fc..d3e97776b 100644
--- a/src/core/hle/service/aoc/aoc_u.cpp
+++ b/src/core/hle/service/aoc/aoc_u.cpp
@@ -116,15 +116,15 @@ void AOC_U::ListAddOnContent(Kernel::HLERequestContext& ctx) {
const auto current = Core::System::GetInstance().CurrentProcess()->GetTitleID();
std::vector<u32> out;
- for (size_t i = 0; i < add_on_content.size(); ++i) {
- if ((add_on_content[i] & DLC_BASE_TITLE_ID_MASK) == current) {
- out.push_back(static_cast<u32>(add_on_content[i] & 0x7FF));
- }
- }
-
const auto& disabled = Settings::values.disabled_addons[current];
- if (std::find(disabled.begin(), disabled.end(), "DLC") != disabled.end()) {
- out = {};
+ if (std::find(disabled.begin(), disabled.end(), "DLC") == disabled.end()) {
+ for (u64 content_id : add_on_content) {
+ if ((content_id & DLC_BASE_TITLE_ID_MASK) != current) {
+ continue;
+ }
+
+ out.push_back(static_cast<u32>(content_id & 0x7FF));
+ }
}
if (out.size() < offset) {