From 680c6e694db6f41ad886b9000348c831677494ee Mon Sep 17 00:00:00 2001 From: Steveice10 Date: Fri, 6 Jul 2018 11:00:57 -0700 Subject: [PATCH] am: Correct reported DLC content indices. --- src/core/hle/service/am/am.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/core/hle/service/am/am.cpp b/src/core/hle/service/am/am.cpp index e20587b6a..7f947dd59 100644 --- a/src/core/hle/service/am/am.cpp +++ b/src/core/hle/service/am/am.cpp @@ -540,7 +540,7 @@ void Module::Interface::FindDLCContentInfos(Kernel::HLERequestContext& ctx) { u16 index = tmd.ContentIndexToIndex(content_requested[i]); ContentInfo content_info = {}; - content_info.index = static_cast(i); + content_info.index = content_requested[i]; content_info.type = tmd.GetContentTypeByIndex(index); content_info.content_id = tmd.GetContentIDByIndex(index); content_info.size = tmd.GetContentSizeByIndex(index); @@ -594,7 +594,7 @@ void Module::Interface::ListDLCContentInfos(Kernel::HLERequestContext& ctx) { u64 romfs_offset = 0; ContentInfo content_info = {}; - content_info.index = static_cast(i); + content_info.index = tmd.GetContentIndexByIndex(i); content_info.type = tmd.GetContentTypeByIndex(i); content_info.content_id = tmd.GetContentIDByIndex(i); content_info.size = tmd.GetContentSizeByIndex(i);