diff options
author | WilliamWsyHK <WilliamWsyHK@users.noreply.github.com> | 2022-11-23 23:25:49 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-11-23 16:25:49 +0100 |
commit | 748d87adccd0f331bd6d1163703040b6d62353b8 (patch) | |
tree | ecbda3e90deb4adbd6206dfa87a928769d64af7b | |
parent | 0fd47ff49077e56f6fd4b9b429c00179fd0e06bd (diff) |
Stub IFriendService: 1 (Cancel) (#3841)1.1.371
* Add friend/Cancel. Closes #3824
* Update according to review comments.
* Add comment base on request
* Update Ryujinx.HLE/HOS/Services/Friend/ServiceCreator/IFriendService.cs
Co-authored-by: Ac_K <Acoustik666@gmail.com>
-rw-r--r-- | Ryujinx.HLE/HOS/Services/Friend/ServiceCreator/IFriendService.cs | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/Ryujinx.HLE/HOS/Services/Friend/ServiceCreator/IFriendService.cs b/Ryujinx.HLE/HOS/Services/Friend/ServiceCreator/IFriendService.cs index 77499fa5..ec947414 100644 --- a/Ryujinx.HLE/HOS/Services/Friend/ServiceCreator/IFriendService.cs +++ b/Ryujinx.HLE/HOS/Services/Friend/ServiceCreator/IFriendService.cs @@ -43,6 +43,16 @@ namespace Ryujinx.HLE.HOS.Services.Friend.ServiceCreator return ResultCode.Success; } + [CommandHipc(1)] + // nn::friends::Cancel() + public ResultCode Cancel(ServiceCtx context) + { + // TODO: Original service sets an internal field to 1 here. Determine usage. + Logger.Stub?.PrintStub(LogClass.ServiceFriend); + + return ResultCode.Success; + } + [CommandHipc(10100)] // nn::friends::GetFriendListIds(int offset, nn::account::Uid userId, nn::friends::detail::ipc::SizedFriendFilter friendFilter, ulong pidPlaceHolder, pid) // -> int outCount, array<nn::account::NetworkServiceAccountId, 0xa> |