From 961b0263fa440b80bec386266c1b23d34c0d3a6d Mon Sep 17 00:00:00 2001 From: Steven Smith Date: Sun, 10 Apr 2016 21:01:20 -0700 Subject: [PATCH] Use proper size value for DSi cartridges. --- source/ui/section/task/listtitles.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/ui/section/task/listtitles.c b/source/ui/section/task/listtitles.c index 3646a81..75e4372 100644 --- a/source/ui/section/task/listtitles.c +++ b/source/ui/section/task/listtitles.c @@ -201,7 +201,7 @@ static Result task_populate_titles_from(populate_titles_data* data, FS_MediaType titleInfo->titleId = *(u64*) &header[0x230]; memcpy(titleInfo->productCode, header, 0x00C); titleInfo->version = header[0x01E]; - titleInfo->installedSize = *(u32*) &header[0x080]; + titleInfo->installedSize = titleInfo->titleId != 0 ? *(u32*) &header[0x210] : *(u32*) &header[0x080]; titleInfo->twl = true; titleInfo->hasSmdh = true;