From cbc7ad8f6d1c122797f016eba5bbf4898fbf20d3 Mon Sep 17 00:00:00 2001 From: David Marcec Date: Wed, 19 Sep 2018 23:25:00 +1000 Subject: Fixed GetAccountId stub, Added error code for OpenDirectory and added ActivateNpadWithRevision With these, `Nintendo Entertainment System - Nintendo Switch Online` loads --- src/core/hle/service/acc/acc.cpp | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'src/core/hle/service/acc') diff --git a/src/core/hle/service/acc/acc.cpp b/src/core/hle/service/acc/acc.cpp index 4d4eb542e..e61748ca3 100644 --- a/src/core/hle/service/acc/acc.cpp +++ b/src/core/hle/service/acc/acc.cpp @@ -130,11 +130,10 @@ private: void GetAccountId(Kernel::HLERequestContext& ctx) { LOG_WARNING(Service_ACC, "(STUBBED) called"); - // TODO(Subv): Find out what this actually does and implement it. Stub it as an error for - // now since we do not implement NNID. Returning a bogus id here will cause games to send - // invalid IPC requests after ListOpenUsers is called. - IPC::ResponseBuilder rb{ctx, 2}; - rb.Push(ResultCode(-1)); + // Should return a nintendo account ID + IPC::ResponseBuilder rb{ctx, 4}; + rb.Push(RESULT_SUCCESS); + rb.PushRaw(1); } }; -- cgit v1.2.3