From 13f93a018881be964b8155f536d583915715101a Mon Sep 17 00:00:00 2001 From: Subv Date: Tue, 21 Jul 2015 00:12:13 -0500 Subject: Services/AM: Stubbed am:app::GetNumContentInfos to return 0 results. Named the service functions in am:app as per 3dbrew. This fixes an illegal read loop in Steel Diver --- src/core/hle/service/am/am.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'src/core/hle/service/am/am.cpp') diff --git a/src/core/hle/service/am/am.cpp b/src/core/hle/service/am/am.cpp index 57dc1ece..7332478f 100644 --- a/src/core/hle/service/am/am.cpp +++ b/src/core/hle/service/am/am.cpp @@ -38,6 +38,15 @@ void GetTitleIDList(Service::Interface* self) { LOG_WARNING(Service_AM, "(STUBBED) Requested %u titles from media type %u", num_titles, media_type); } +void GetNumContentInfos(Service::Interface* self) { + u32* cmd_buff = Kernel::GetCommandBuffer(); + + cmd_buff[1] = RESULT_SUCCESS.raw; + cmd_buff[2] = 1; // Number of content infos plus one + + LOG_WARNING(Service_AM, "(STUBBED) called"); +} + void Init() { using namespace Kernel; -- cgit v1.2.3