diff options
| -rw-r--r-- | src/core/hle/service/aoc/aoc_u.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/core/hle/service/aoc/aoc_u.cpp b/src/core/hle/service/aoc/aoc_u.cpp index 79580bcd9..0ecfb5af1 100644 --- a/src/core/hle/service/aoc/aoc_u.cpp +++ b/src/core/hle/service/aoc/aoc_u.cpp | |||
| @@ -61,13 +61,13 @@ AOC_U::AOC_U() : ServiceFramework("aoc:u"), add_on_content(AccumulateAOCTitleIDs | |||
| 61 | AOC_U::~AOC_U() = default; | 61 | AOC_U::~AOC_U() = default; |
| 62 | 62 | ||
| 63 | void AOC_U::CountAddOnContent(Kernel::HLERequestContext& ctx) { | 63 | void AOC_U::CountAddOnContent(Kernel::HLERequestContext& ctx) { |
| 64 | IPC::ResponseBuilder rb{ctx, 4}; | 64 | IPC::ResponseBuilder rb{ctx, 3}; |
| 65 | rb.Push(RESULT_SUCCESS); | 65 | rb.Push(RESULT_SUCCESS); |
| 66 | 66 | ||
| 67 | const auto current = Core::System::GetInstance().CurrentProcess()->GetTitleID(); | 67 | const auto current = Core::System::GetInstance().CurrentProcess()->GetTitleID(); |
| 68 | rb.Push<u32>(std::count_if(add_on_content.begin(), add_on_content.end(), [¤t](u64 tid) { | 68 | rb.Push<u32>(static_cast<u32>( |
| 69 | return (tid & DLC_BASE_TITLE_ID_MASK) == current; | 69 | std::count_if(add_on_content.begin(), add_on_content.end(), |
| 70 | })); | 70 | [¤t](u64 tid) { return (tid & DLC_BASE_TITLE_ID_MASK) == current; }))); |
| 71 | } | 71 | } |
| 72 | 72 | ||
| 73 | void AOC_U::ListAddOnContent(Kernel::HLERequestContext& ctx) { | 73 | void AOC_U::ListAddOnContent(Kernel::HLERequestContext& ctx) { |
| @@ -91,7 +91,7 @@ void AOC_U::ListAddOnContent(Kernel::HLERequestContext& ctx) { | |||
| 91 | return; | 91 | return; |
| 92 | } | 92 | } |
| 93 | 93 | ||
| 94 | count = std::min<size_t>(out.size() - offset, count); | 94 | count = static_cast<u32>(std::min<size_t>(out.size() - offset, count)); |
| 95 | std::rotate(out.begin(), out.begin() + offset, out.end()); | 95 | std::rotate(out.begin(), out.begin() + offset, out.end()); |
| 96 | out.resize(count); | 96 | out.resize(count); |
| 97 | 97 | ||