summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGravatar David Marcec2020-06-28 16:51:28 +1000
committerGravatar David Marcec2020-06-28 16:51:28 +1000
commitdcf345febe605d2921487926f5ead337a798048f (patch)
tree73bee538fe14ac2cbf8911c6e8dcef25d0877565 /src
parentMerge pull request #3396 from FernandoS27/prometheus-1 (diff)
downloadyuzu-dcf345febe605d2921487926f5ead337a798048f.tar.gz
yuzu-dcf345febe605d2921487926f5ead337a798048f.tar.xz
yuzu-dcf345febe605d2921487926f5ead337a798048f.zip
am: Stub GetIndirectLayerConsumerHandle
Needed by Monster Hunter Generations Ultimate
Diffstat (limited to 'src')
-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