mirror of
https://github.com/skyline-emu/skyline.git
synced 2024-12-28 09:45:28 +03:00
Stub IRequest::GetAppletInfo in nifm
This commit is contained in:
parent
6c5f9941ad
commit
3df76e84c3
@ -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;
|
||||
}
|
||||
}
|
||||
|
@ -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)
|
||||
)
|
||||
};
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user