diff options
author | Subv <subv2112@gmail.com> | 2018-07-20 18:02:25 +0200 |
---|---|---|
committer | Subv <subv2112@gmail.com> | 2018-07-20 18:02:25 +0200 |
commit | 9c7321fe6dbaadb66b70107b314092e9ce83991f (patch) | |
tree | 61759f94085b11d95df05e5a4b3bf8e7118c7733 /src/core/hle/service | |
parent | Merge pull request #730 from lioncash/string (diff) | |
download | yuzu-9c7321fe6dbaadb66b70107b314092e9ce83991f.tar yuzu-9c7321fe6dbaadb66b70107b314092e9ce83991f.tar.gz yuzu-9c7321fe6dbaadb66b70107b314092e9ce83991f.tar.bz2 yuzu-9c7321fe6dbaadb66b70107b314092e9ce83991f.tar.lz yuzu-9c7321fe6dbaadb66b70107b314092e9ce83991f.tar.xz yuzu-9c7321fe6dbaadb66b70107b314092e9ce83991f.tar.zst yuzu-9c7321fe6dbaadb66b70107b314092e9ce83991f.zip |
Diffstat (limited to 'src/core/hle/service')
-rw-r--r-- | src/core/hle/service/acc/acc.cpp | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/src/core/hle/service/acc/acc.cpp b/src/core/hle/service/acc/acc.cpp index 8ee39b54c..3e1c2c0a0 100644 --- a/src/core/hle/service/acc/acc.cpp +++ b/src/core/hle/service/acc/acc.cpp @@ -82,14 +82,16 @@ private: LOG_WARNING(Service_ACC, "(STUBBED) called"); IPC::ResponseBuilder rb{ctx, 3}; rb.Push(RESULT_SUCCESS); - rb.Push(true); // TODO: Check when this is supposed to return true and when not + rb.Push(false); // TODO: Check when this is supposed to return true and when not } void GetAccountId(Kernel::HLERequestContext& ctx) { LOG_WARNING(Service_ACC, "(STUBBED) called"); - IPC::ResponseBuilder rb{ctx, 4}; - rb.Push(RESULT_SUCCESS); - rb.Push<u64>(0x12345678ABCDEF); + // 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)); } }; @@ -104,7 +106,7 @@ void Module::Interface::ListAllUsers(Kernel::HLERequestContext& ctx) { LOG_WARNING(Service_ACC, "(STUBBED) called"); // TODO(Subv): There is only one user for now. const std::vector<u128> user_ids = {DEFAULT_USER_ID}; - ctx.WriteBuffer(user_ids.data(), user_ids.size() * sizeof(u128)); + ctx.WriteBuffer(user_ids); IPC::ResponseBuilder rb{ctx, 2}; rb.Push(RESULT_SUCCESS); } @@ -113,7 +115,7 @@ void Module::Interface::ListOpenUsers(Kernel::HLERequestContext& ctx) { LOG_WARNING(Service_ACC, "(STUBBED) called"); // TODO(Subv): There is only one user for now. const std::vector<u128> user_ids = {DEFAULT_USER_ID}; - ctx.WriteBuffer(user_ids.data(), user_ids.size() * sizeof(u128)); + ctx.WriteBuffer(user_ids); IPC::ResponseBuilder rb{ctx, 2}; rb.Push(RESULT_SUCCESS); } |