diff options
author | bunnei <bunneidev@gmail.com> | 2018-10-20 04:53:00 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-10-20 04:53:00 +0200 |
commit | 52b25e0fb96735babdfe570e946625e4ed162c7c (patch) | |
tree | 1345c683ae6510e15895d7f56b62acb99919573e /src/core/hle/service/aoc/aoc_u.cpp | |
parent | Merge pull request #1516 from lioncash/hid (diff) | |
parent | aoc_u: Stub GetAddOnContentListChangedEvent (diff) | |
download | yuzu-52b25e0fb96735babdfe570e946625e4ed162c7c.tar yuzu-52b25e0fb96735babdfe570e946625e4ed162c7c.tar.gz yuzu-52b25e0fb96735babdfe570e946625e4ed162c7c.tar.bz2 yuzu-52b25e0fb96735babdfe570e946625e4ed162c7c.tar.lz yuzu-52b25e0fb96735babdfe570e946625e4ed162c7c.tar.xz yuzu-52b25e0fb96735babdfe570e946625e4ed162c7c.tar.zst yuzu-52b25e0fb96735babdfe570e946625e4ed162c7c.zip |
Diffstat (limited to 'src/core/hle/service/aoc/aoc_u.cpp')
-rw-r--r-- | src/core/hle/service/aoc/aoc_u.cpp | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/src/core/hle/service/aoc/aoc_u.cpp b/src/core/hle/service/aoc/aoc_u.cpp index 518161bf7..428069df2 100644 --- a/src/core/hle/service/aoc/aoc_u.cpp +++ b/src/core/hle/service/aoc/aoc_u.cpp @@ -13,6 +13,7 @@ #include "core/file_sys/patch_manager.h" #include "core/file_sys/registered_cache.h" #include "core/hle/ipc_helpers.h" +#include "core/hle/kernel/event.h" #include "core/hle/kernel/process.h" #include "core/hle/service/aoc/aoc_u.h" #include "core/hle/service/filesystem/filesystem.h" @@ -55,9 +56,13 @@ AOC_U::AOC_U() : ServiceFramework("aoc:u"), add_on_content(AccumulateAOCTitleIDs {5, &AOC_U::GetAddOnContentBaseId, "GetAddOnContentBaseId"}, {6, nullptr, "PrepareAddOnContentByApplicationId"}, {7, &AOC_U::PrepareAddOnContent, "PrepareAddOnContent"}, - {8, nullptr, "GetAddOnContentListChangedEvent"}, + {8, &AOC_U::GetAddOnContentListChangedEvent, "GetAddOnContentListChangedEvent"}, }; RegisterHandlers(functions); + + auto& kernel = Core::System::GetInstance().Kernel(); + aoc_change_event = Kernel::Event::Create(kernel, Kernel::ResetType::Sticky, + "GetAddOnContentListChanged:Event"); } AOC_U::~AOC_U() = default; @@ -130,6 +135,14 @@ void AOC_U::PrepareAddOnContent(Kernel::HLERequestContext& ctx) { rb.Push(RESULT_SUCCESS); } +void AOC_U::GetAddOnContentListChangedEvent(Kernel::HLERequestContext& ctx) { + LOG_WARNING(Service_AOC, "(STUBBED) called"); + + IPC::ResponseBuilder rb{ctx, 2, 1}; + rb.Push(RESULT_SUCCESS); + rb.PushCopyObjects(aoc_change_event); +} + void InstallInterfaces(SM::ServiceManager& service_manager) { std::make_shared<AOC_U>()->InstallAsService(service_manager); } |