From 360306eb61252950c4a494b1927809497c97cddc Mon Sep 17 00:00:00 2001 From: Dima Date: Sat, 12 Nov 2022 13:16:50 +0300 Subject: [PATCH] Stub GetAddOnContentListChangedEventWithProcessId --- .../skyline/services/aocsrv/IAddOnContentManager.cpp | 12 ++++++++++++ .../skyline/services/aocsrv/IAddOnContentManager.h | 8 +++++++- 2 files changed, 19 insertions(+), 1 deletion(-) diff --git a/app/src/main/cpp/skyline/services/aocsrv/IAddOnContentManager.cpp b/app/src/main/cpp/skyline/services/aocsrv/IAddOnContentManager.cpp index 8fa9519f..1f3209b1 100644 --- a/app/src/main/cpp/skyline/services/aocsrv/IAddOnContentManager.cpp +++ b/app/src/main/cpp/skyline/services/aocsrv/IAddOnContentManager.cpp @@ -26,4 +26,16 @@ namespace skyline::service::aocsrv { response.copyHandles.push_back(handle); return {}; } + + Result IAddOnContentManager::GetAddOnContentListChangedEventWithProcessId(type::KSession &session, ipc::IpcRequest &request, ipc::IpcResponse &response) { + KHandle handle{state.process->InsertItem(addOnContentListChangedEvent)}; + Logger::Debug("Add On Content List Changed Event Handle: 0x{:X}", handle); + + response.copyHandles.push_back(handle); + return {}; + } + + Result IAddOnContentManager::CheckAddOnContentMountStatus(type::KSession &session, ipc::IpcRequest &request, ipc::IpcResponse &response) { + return {}; + } } diff --git a/app/src/main/cpp/skyline/services/aocsrv/IAddOnContentManager.h b/app/src/main/cpp/skyline/services/aocsrv/IAddOnContentManager.h index d332eaa0..72cb17dd 100644 --- a/app/src/main/cpp/skyline/services/aocsrv/IAddOnContentManager.h +++ b/app/src/main/cpp/skyline/services/aocsrv/IAddOnContentManager.h @@ -24,10 +24,16 @@ namespace skyline::service::aocsrv { Result GetAddOnContentListChangedEvent(type::KSession &session, ipc::IpcRequest &request, ipc::IpcResponse &response); + Result GetAddOnContentListChangedEventWithProcessId(type::KSession &session, ipc::IpcRequest &request, ipc::IpcResponse &response); + + Result CheckAddOnContentMountStatus(type::KSession &session, ipc::IpcRequest &request, ipc::IpcResponse &response); + SERVICE_DECL( SFUNC(0x2, IAddOnContentManager, CountAddOnContent), SFUNC(0x3, IAddOnContentManager, ListAddOnContent), - SFUNC(0x8, IAddOnContentManager, GetAddOnContentListChangedEvent) + SFUNC(0x8, IAddOnContentManager, GetAddOnContentListChangedEvent), + SFUNC(0xA, IAddOnContentManager, GetAddOnContentListChangedEventWithProcessId), + SFUNC(0x32, IAddOnContentManager, CheckAddOnContentMountStatus) ) }; }