diff options
author | bunnei <bunneidev@gmail.com> | 2020-07-03 03:31:20 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-07-03 03:31:20 +0200 |
commit | b13fd9e65a852ba52e0a6b4ed9153cf2bec4b8d7 (patch) | |
tree | 4f424f1f2f61433159255b16ac54f385c5575d31 /src/core/hle/service/am/am.cpp | |
parent | Merge pull request #4192 from ogniK5377/acc-ListOpenContextStoredUsers-stub (diff) | |
parent | am: Stub GetIndirectLayerConsumerHandle (diff) | |
download | yuzu-b13fd9e65a852ba52e0a6b4ed9153cf2bec4b8d7.tar yuzu-b13fd9e65a852ba52e0a6b4ed9153cf2bec4b8d7.tar.gz yuzu-b13fd9e65a852ba52e0a6b4ed9153cf2bec4b8d7.tar.bz2 yuzu-b13fd9e65a852ba52e0a6b4ed9153cf2bec4b8d7.tar.lz yuzu-b13fd9e65a852ba52e0a6b4ed9153cf2bec4b8d7.tar.xz yuzu-b13fd9e65a852ba52e0a6b4ed9153cf2bec4b8d7.tar.zst yuzu-b13fd9e65a852ba52e0a6b4ed9153cf2bec4b8d7.zip |
Diffstat (limited to 'src/core/hle/service/am/am.cpp')
-rw-r--r-- | src/core/hle/service/am/am.cpp | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/src/core/hle/service/am/am.cpp b/src/core/hle/service/am/am.cpp index 20f366635..1bb544dd8 100644 --- a/src/core/hle/service/am/am.cpp +++ b/src/core/hle/service/am/am.cpp @@ -841,7 +841,7 @@ public: {110, nullptr, "NeedsToExitProcess"}, {120, nullptr, "GetLibraryAppletInfo"}, {150, nullptr, "RequestForAppletToGetForeground"}, - {160, nullptr, "GetIndirectLayerConsumerHandle"}, + {160, &ILibraryAppletAccessor::GetIndirectLayerConsumerHandle, "GetIndirectLayerConsumerHandle"}, }; // clang-format on @@ -960,6 +960,18 @@ private: rb.PushCopyObjects(applet->GetBroker().GetInteractiveDataEvent()); } + void GetIndirectLayerConsumerHandle(Kernel::HLERequestContext& ctx) { + LOG_WARNING(Service_AM, "(STUBBED) called"); + + // We require a non-zero handle to be valid. Using 0xdeadbeef allows us to trace if this is + // actually used anywhere + constexpr u64 handle = 0xdeadbeef; + + IPC::ResponseBuilder rb{ctx, 4}; + rb.Push(RESULT_SUCCESS); + rb.Push(handle); + } + std::shared_ptr<Applets::Applet> applet; }; |