aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/core/hle/service/am/am.cpp
diff options
context:
space:
mode:
authorGravatar Subv <subv2112@gmail.com>2015-07-21 00:12:13 -0500
committerGravatar Subv <subv2112@gmail.com>2015-07-21 00:12:13 -0500
commit13f93a018881be964b8155f536d583915715101a (patch)
tree9cfb1257ce7bfa7e2d5dfd4b4a1ff70003401ed6 /src/core/hle/service/am/am.cpp
parentcd2bb2dc698d5ce142394a22c5abff0cb89d431a (diff)
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
Diffstat (limited to 'src/core/hle/service/am/am.cpp')
-rw-r--r--src/core/hle/service/am/am.cpp9
1 files changed, 9 insertions, 0 deletions
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;