yuzu-emu
/
yuzu
Archived
1
0
Fork 0

Merge pull request #4193 from ogniK5377/GetIndirectLayerConsumerHandle-stub

am: Stub GetIndirectLayerConsumerHandle
This commit is contained in:
bunnei 2020-07-02 21:31:20 -04:00 committed by GitHub
commit b13fd9e65a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 13 additions and 1 deletions

View File

@ -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;
};