diff options
author | Zach Hilman <zachhilman@gmail.com> | 2019-07-03 14:57:41 +0200 |
---|---|---|
committer | Zach Hilman <zachhilman@gmail.com> | 2019-07-03 14:57:41 +0200 |
commit | 471b2a42117851aec46467a4b6b59ce6f5f6f421 (patch) | |
tree | 9fb35d086973b6f697035ba5aca3e89b80e31e99 /src/core/hle/service/acc/acc.cpp | |
parent | acc: Implement IProfileEditor-specific commands 'Store' and 'StoreWithImage' (diff) | |
download | yuzu-471b2a42117851aec46467a4b6b59ce6f5f6f421.tar yuzu-471b2a42117851aec46467a4b6b59ce6f5f6f421.tar.gz yuzu-471b2a42117851aec46467a4b6b59ce6f5f6f421.tar.bz2 yuzu-471b2a42117851aec46467a4b6b59ce6f5f6f421.tar.lz yuzu-471b2a42117851aec46467a4b6b59ce6f5f6f421.tar.xz yuzu-471b2a42117851aec46467a4b6b59ce6f5f6f421.tar.zst yuzu-471b2a42117851aec46467a4b6b59ce6f5f6f421.zip |
Diffstat (limited to 'src/core/hle/service/acc/acc.cpp')
-rw-r--r-- | src/core/hle/service/acc/acc.cpp | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/core/hle/service/acc/acc.cpp b/src/core/hle/service/acc/acc.cpp index 0b9d1df1c..002efaa7a 100644 --- a/src/core/hle/service/acc/acc.cpp +++ b/src/core/hle/service/acc/acc.cpp @@ -350,6 +350,17 @@ void Module::Interface::IsUserAccountSwitchLocked(Kernel::HLERequestContext& ctx rb.Push(is_locked); } +void Module::Interface::GetProfileEditor(Kernel::HLERequestContext& ctx) { + IPC::RequestParser rp{ctx}; + Common::UUID user_id = rp.PopRaw<Common::UUID>(); + + LOG_DEBUG(Service_ACC, "called, user_id={}", user_id.Format()); + + IPC::ResponseBuilder rb{ctx, 2, 0, 1}; + rb.Push(RESULT_SUCCESS); + rb.PushIpcInterface<IProfileEditor>(user_id, *profile_manager); +} + void Module::Interface::TrySelectUserWithoutInteraction(Kernel::HLERequestContext& ctx) { LOG_DEBUG(Service_ACC, "called"); // A u8 is passed into this function which we can safely ignore. It's to determine if we have |