diff options
| author | Subv <subv2112@gmail.com> | 2015-07-21 00:12:13 -0500 |
|---|---|---|
| committer | Subv <subv2112@gmail.com> | 2015-07-21 00:12:13 -0500 |
| commit | 13f93a018881be964b8155f536d583915715101a (patch) | |
| tree | 9cfb1257ce7bfa7e2d5dfd4b4a1ff70003401ed6 /src/core/hle/service/am/am.cpp | |
| parent | cd2bb2dc698d5ce142394a22c5abff0cb89d431a (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.cpp | 9 |
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 57dc1ece7..7332478fb 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; |
