Skip to content
Snippets Groups Projects
Unverified Commit b13fd9e6 authored by bunnei's avatar bunnei Committed by GitHub
Browse files

Merge pull request #4193 from ogniK5377/GetIndirectLayerConsumerHandle-stub

am: Stub GetIndirectLayerConsumerHandle
parents af787e45 dcf345fe
No related branches found
No related tags found
No related merge requests found
...@@ -841,7 +841,7 @@ public: ...@@ -841,7 +841,7 @@ public:
{110, nullptr, "NeedsToExitProcess"}, {110, nullptr, "NeedsToExitProcess"},
{120, nullptr, "GetLibraryAppletInfo"}, {120, nullptr, "GetLibraryAppletInfo"},
{150, nullptr, "RequestForAppletToGetForeground"}, {150, nullptr, "RequestForAppletToGetForeground"},
{160, nullptr, "GetIndirectLayerConsumerHandle"}, {160, &ILibraryAppletAccessor::GetIndirectLayerConsumerHandle, "GetIndirectLayerConsumerHandle"},
}; };
// clang-format on // clang-format on
...@@ -960,6 +960,18 @@ private: ...@@ -960,6 +960,18 @@ private:
rb.PushCopyObjects(applet->GetBroker().GetInteractiveDataEvent()); 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; std::shared_ptr<Applets::Applet> applet;
}; };
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment