From 917fb7ad218a84b12d84187c3e2ce188c9407497 Mon Sep 17 00:00:00 2001 From: Ac_K Date: Tue, 17 Apr 2018 16:41:14 +0000 Subject: [PATCH] Update IAccountServiceForApplication.cs (#85) Stubs: - GetUserCount (`Write(0);` throw userland error) --- .../Services/Acc/IAccountServiceForApplication.cs | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/Ryujinx.Core/OsHle/Services/Acc/IAccountServiceForApplication.cs b/Ryujinx.Core/OsHle/Services/Acc/IAccountServiceForApplication.cs index 75c7725d6..3ecdf15c5 100644 --- a/Ryujinx.Core/OsHle/Services/Acc/IAccountServiceForApplication.cs +++ b/Ryujinx.Core/OsHle/Services/Acc/IAccountServiceForApplication.cs @@ -13,6 +13,7 @@ namespace Ryujinx.Core.OsHle.Services.Acc { m_Commands = new Dictionary() { + { 0, GetUserCount }, { 3, ListOpenUsers }, { 5, GetProfile }, { 100, InitializeApplicationInfo }, @@ -20,6 +21,15 @@ namespace Ryujinx.Core.OsHle.Services.Acc }; } + public long GetUserCount(ServiceCtx Context) + { + Context.ResponseData.Write(0); + + Logging.Stub(LogClass.ServiceAcc, "Stubbed"); + + return 0; + } + public long ListOpenUsers(ServiceCtx Context) { Logging.Stub(LogClass.ServiceAcc, "Stubbed"); @@ -48,4 +58,4 @@ namespace Ryujinx.Core.OsHle.Services.Acc return 0; } } -} \ No newline at end of file +}