mirror of
https://gitlab.com/Theopse/fbi-i18n-zh.git
synced 2025-08-28 02:55:05 +08:00
Use proper size value for DSi cartridges.
This commit is contained in:
parent
56b0879f8f
commit
961b0263fa
@ -201,7 +201,7 @@ static Result task_populate_titles_from(populate_titles_data* data, FS_MediaType
|
|||||||
titleInfo->titleId = *(u64*) &header[0x230];
|
titleInfo->titleId = *(u64*) &header[0x230];
|
||||||
memcpy(titleInfo->productCode, header, 0x00C);
|
memcpy(titleInfo->productCode, header, 0x00C);
|
||||||
titleInfo->version = header[0x01E];
|
titleInfo->version = header[0x01E];
|
||||||
titleInfo->installedSize = *(u32*) &header[0x080];
|
titleInfo->installedSize = titleInfo->titleId != 0 ? *(u32*) &header[0x210] : *(u32*) &header[0x080];
|
||||||
titleInfo->twl = true;
|
titleInfo->twl = true;
|
||||||
titleInfo->hasSmdh = true;
|
titleInfo->hasSmdh = true;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user