mirror of
https://github.com/Atmosphere-NX/Atmosphere.git
synced 2025-09-18 23:41:58 +00:00
mitm: Improve session acquire semantics.
This commit is contained in:
parent
a00e120bf7
commit
46cc08160d
5 changed files with 65 additions and 6 deletions
|
@ -98,6 +98,20 @@ Result UserService::AtmosphereUninstallMitm(SmServiceName service) {
|
|||
return rc;
|
||||
}
|
||||
|
||||
Result UserService::AtmosphereAcknowledgeMitmSession(Out<u64> client_pid, Out<MovedHandle> fwd_h, SmServiceName service) {
|
||||
Result rc = 0x415;
|
||||
Handle out_fwd_h = 0;
|
||||
if (this->has_initialized) {
|
||||
rc = Registration::AcknowledgeMitmSessionForPid(this->pid, smEncodeName(service.name), &out_fwd_h, client_pid.GetPointer());
|
||||
}
|
||||
|
||||
if (R_SUCCEEDED(rc)) {
|
||||
fwd_h.SetValue(out_fwd_h);
|
||||
}
|
||||
|
||||
return rc;
|
||||
}
|
||||
|
||||
Result UserService::AtmosphereAssociatePidTidForMitm(u64 pid, u64 tid) {
|
||||
Result rc = 0x415;
|
||||
if (this->has_initialized) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue