summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar bunnei2020-07-02 21:31:20 -0400
committerGravatar GitHub2020-07-02 21:31:20 -0400
commitb13fd9e65a852ba52e0a6b4ed9153cf2bec4b8d7 (patch)
tree4f424f1f2f61433159255b16ac54f385c5575d31
parentMerge pull request #4192 from ogniK5377/acc-ListOpenContextStoredUsers-stub (diff)
parentam: Stub GetIndirectLayerConsumerHandle (diff)
downloadyuzu-b13fd9e65a852ba52e0a6b4ed9153cf2bec4b8d7.tar.gz
yuzu-b13fd9e65a852ba52e0a6b4ed9153cf2bec4b8d7.tar.xz
yuzu-b13fd9e65a852ba52e0a6b4ed9153cf2bec4b8d7.zip
Merge pull request #4193 from ogniK5377/GetIndirectLayerConsumerHandle-stub
am: Stub GetIndirectLayerConsumerHandle
-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:
841 {110, nullptr, "NeedsToExitProcess"}, 841 {110, nullptr, "NeedsToExitProcess"},
842 {120, nullptr, "GetLibraryAppletInfo"}, 842 {120, nullptr, "GetLibraryAppletInfo"},
843 {150, nullptr, "RequestForAppletToGetForeground"}, 843 {150, nullptr, "RequestForAppletToGetForeground"},
844 {160, nullptr, "GetIndirectLayerConsumerHandle"}, 844 {160, &ILibraryAppletAccessor::GetIndirectLayerConsumerHandle, "GetIndirectLayerConsumerHandle"},
845 }; 845 };
846 // clang-format on 846 // clang-format on
847 847
@@ -960,6 +960,18 @@ private:
960 rb.PushCopyObjects(applet->GetBroker().GetInteractiveDataEvent()); 960 rb.PushCopyObjects(applet->GetBroker().GetInteractiveDataEvent());
961 } 961 }
962 962
963 void GetIndirectLayerConsumerHandle(Kernel::HLERequestContext& ctx) {
964 LOG_WARNING(Service_AM, "(STUBBED) called");
965
966 // We require a non-zero handle to be valid. Using 0xdeadbeef allows us to trace if this is
967 // actually used anywhere
968 constexpr u64 handle = 0xdeadbeef;
969
970 IPC::ResponseBuilder rb{ctx, 4};
971 rb.Push(RESULT_SUCCESS);
972 rb.Push(handle);
973 }
974
963 std::shared_ptr<Applets::Applet> applet; 975 std::shared_ptr<Applets::Applet> applet;
964}; 976};
965 977