summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2020-07-03 03:31:20 +0200
committerGitHub <noreply@github.com>2020-07-03 03:31:20 +0200
commitb13fd9e65a852ba52e0a6b4ed9153cf2bec4b8d7 (patch)
tree4f424f1f2f61433159255b16ac54f385c5575d31
parentMerge pull request #4192 from ogniK5377/acc-ListOpenContextStoredUsers-stub (diff)
parentam: Stub GetIndirectLayerConsumerHandle (diff)
downloadyuzu-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
-rw-r--r--src/core/hle/service/am/am.cpp14
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;
};