Stub IRequest::GetAppletInfo in nifm

This commit is contained in:
Billy Laws 2022-04-09 13:07:32 +01:00 committed by PixelyIon
parent 6c5f9941ad
commit 3df76e84c3
2 changed files with 16 additions and 2 deletions

View File

@ -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<type::KEvent>(state, false)),
event1(std::make_shared<type::KEvent>(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;
}
}

View File

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