sm: implement UserService::DetachClient
This commit is contained in:
@@ -51,6 +51,11 @@ namespace ams::sm {
|
||||
return impl::UnregisterService(this->process_id, service);
|
||||
}
|
||||
|
||||
Result UserService::DetachClient(const sf::ClientProcessId &client_process_id) {
|
||||
this->has_initialized = false;
|
||||
return ResultSuccess();
|
||||
}
|
||||
|
||||
Result UserService::AtmosphereInstallMitm(sf::OutMoveHandle srv_h, sf::OutMoveHandle qry_h, ServiceName service) {
|
||||
R_TRY(this->EnsureInitialized());
|
||||
return impl::InstallMitm(srv_h.GetHandlePointer(), qry_h.GetHandlePointer(), this->process_id, service);
|
||||
|
||||
@@ -34,6 +34,7 @@ namespace ams::sm {
|
||||
Result GetServiceHandle(sf::OutMoveHandle out_h, ServiceName service);
|
||||
Result RegisterService(sf::OutMoveHandle out_h, ServiceName service, u32 max_sessions, bool is_light);
|
||||
Result UnregisterService(ServiceName service);
|
||||
Result DetachClient(const sf::ClientProcessId &client_process_id);
|
||||
|
||||
/* Atmosphere commands. */
|
||||
Result AtmosphereInstallMitm(sf::OutMoveHandle srv_h, sf::OutMoveHandle qry_h, ServiceName service);
|
||||
|
||||
Reference in New Issue
Block a user