From 3df76e84c37b46c2d6e41df11b2a9cb346094286 Mon Sep 17 00:00:00 2001 From: Billy Laws Date: Sat, 9 Apr 2022 13:07:32 +0100 Subject: [PATCH] Stub IRequest::GetAppletInfo in nifm --- app/src/main/cpp/skyline/services/nifm/IRequest.cpp | 8 ++++++++ app/src/main/cpp/skyline/services/nifm/IRequest.h | 10 ++++++++-- 2 files changed, 16 insertions(+), 2 deletions(-) diff --git a/app/src/main/cpp/skyline/services/nifm/IRequest.cpp b/app/src/main/cpp/skyline/services/nifm/IRequest.cpp index 6e12854f..b7e26f67 100644 --- a/app/src/main/cpp/skyline/services/nifm/IRequest.cpp +++ b/app/src/main/cpp/skyline/services/nifm/IRequest.cpp @@ -5,6 +5,10 @@ #include "IRequest.h" namespace skyline::service::nifm { + namespace result { + constexpr Result AppletLaunchNotRequired{110, 180}; + } + IRequest::IRequest(const DeviceState &state, ServiceManager &manager) : event0(std::make_shared(state, false)), event1(std::make_shared(state, false)), @@ -35,4 +39,8 @@ namespace skyline::service::nifm { Result IRequest::Submit(type::KSession &session, ipc::IpcRequest &request, ipc::IpcResponse &response) { return {}; } + + Result IRequest::GetAppletInfo(type::KSession &session, ipc::IpcRequest &request, ipc::IpcResponse &response) { + return result::AppletLaunchNotRequired; + } } diff --git a/app/src/main/cpp/skyline/services/nifm/IRequest.h b/app/src/main/cpp/skyline/services/nifm/IRequest.h index 7f3cafcb..6894cd4d 100644 --- a/app/src/main/cpp/skyline/services/nifm/IRequest.h +++ b/app/src/main/cpp/skyline/services/nifm/IRequest.h @@ -43,11 +43,17 @@ namespace skyline::service::nifm { */ Result Submit(type::KSession &session, ipc::IpcRequest &request, ipc::IpcResponse &response); + /** + * @url https://switchbrew.org/wiki/Network_Interface_services#GetAppletInfo + */ + Result GetAppletInfo(type::KSession &session, ipc::IpcRequest &request, ipc::IpcResponse &response); + SERVICE_DECL( SFUNC(0x0, IRequest, GetRequestState), SFUNC(0x1, IRequest, GetResult), SFUNC(0x2, IRequest, GetSystemEventReadableHandles), - SFUNC(0x4, IRequest, Submit) - ) + SFUNC(0x4, IRequest, Submit), + SFUNC(0x15, IRequest, GetAppletInfo) + ) }; }