fixed ListDataTitleTicketInfos

Signed-off-by: JamePeng <jame_peng@sina.com>
This commit is contained in:
JamePeng 2016-02-11 03:47:47 +08:00
parent 1fea593c7e
commit 6448d788c5

View file

@ -47,14 +47,13 @@ void GetNumContentInfos(Service::Interface* self) {
void ListDataTitleTicketInfos(Service::Interface* self) { void ListDataTitleTicketInfos(Service::Interface* self) {
u32* cmd_buff = Kernel::GetCommandBuffer(); u32* cmd_buff = Kernel::GetCommandBuffer();
u32 ticket_count = cmd_buff[1]; u32 ticket_count = cmd_buff[1];
u64 title_id = cmd_buff[2]; u64 title_id = (title_id << 32) | cmd_buff[3];
title_id = (title_id << 32) | cmd_buff[3];
u32 start_index = cmd_buff[4]; u32 start_index = cmd_buff[4];
u32 tipointer = cmd_buff[6]; u32 tipointer = cmd_buff[6];
cmd_buff[1] = RESULT_SUCCESS.raw; cmd_buff[1] = RESULT_SUCCESS.raw;
cmd_buff[2] = 0x18; cmd_buff[2] = 0x18;
LOG_WARNING(Service_AM, "(STUBBED) TicketCount=0x%08X TitleID==0x%16X StartIndex=0x%08X", LOG_WARNING(Service_AM, "(STUBBED) TicketCount=0x%08X TitleID==0x%I64x StartIndex=0x%08X",
"TicketInfosPointer=0x%08X",ticket_count, title_id, start_index, tipointer); "TicketInfosPointer=0x%08X",ticket_count, title_id, start_index, tipointer);
} }