summaryrefslogtreecommitdiffstats
path: root/src/core
diff options
context:
space:
mode:
authorDavid Marcec <dmarcecguzman@gmail.com>2020-06-28 08:51:28 +0200
committerDavid Marcec <dmarcecguzman@gmail.com>2020-06-28 08:51:28 +0200
commitdcf345febe605d2921487926f5ead337a798048f (patch)
tree73bee538fe14ac2cbf8911c6e8dcef25d0877565 /src/core
parentMerge pull request #3396 from FernandoS27/prometheus-1 (diff)
downloadyuzu-dcf345febe605d2921487926f5ead337a798048f.tar
yuzu-dcf345febe605d2921487926f5ead337a798048f.tar.gz
yuzu-dcf345febe605d2921487926f5ead337a798048f.tar.bz2
yuzu-dcf345febe605d2921487926f5ead337a798048f.tar.lz
yuzu-dcf345febe605d2921487926f5ead337a798048f.tar.xz
yuzu-dcf345febe605d2921487926f5ead337a798048f.tar.zst
yuzu-dcf345febe605d2921487926f5ead337a798048f.zip
Diffstat (limited to 'src/core')
-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;
};