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) + ) }; }