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
This commit is contained in:
Subv
2015-07-21 00:12:13 -05:00
parent cd2bb2dc69
commit 13f93a0188
3 changed files with 33 additions and 3 deletions

View File

@ -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;