Skip to content

Fix inability to parse TMDs with >1024 contents#161

Merged
jakcron merged 1 commit into
3DSGuy:masterfrom
ZeroSkill1:largetmd_fix
Aug 24, 2025
Merged

Fix inability to parse TMDs with >1024 contents#161
jakcron merged 1 commit into
3DSGuy:masterfrom
ZeroSkill1:largetmd_fix

Conversation

@ZeroSkill1

Copy link
Copy Markdown

Title pretty much sums it up. Because ctrtool assumed that all TMDs have only one cmd group, further parsing fails as after TMD deserialisation, the implementation attempts to read a cert chain, which results in it reading into other content info data.

The fix here is to properly read all the cmd groups and hashing each to ensure all content infos are read.

@jakcron

jakcron commented Aug 14, 2025

Copy link
Copy Markdown
Collaborator

Oh wow, thanks for the pull request. Just out of curiosity, where/what title did this TMD come from?

@ZeroSkill1

ZeroSkill1 commented Aug 15, 2025

Copy link
Copy Markdown
Author

Title 0004008C000CBD00, a DLC title for a Japanese chatting app.

@jakcron jakcron merged commit 4339ba0 into 3DSGuy:master Aug 24, 2025
9 checks passed
@jakcron

jakcron commented Aug 24, 2025

Copy link
Copy Markdown
Collaborator

Thank you for this pull request.

@ZeroSkill1 ZeroSkill1 deleted the largetmd_fix branch September 25, 2025 06:15
@jakcron

jakcron commented Jan 18, 2026

Copy link
Copy Markdown
Collaborator

This has been released as CTRTool v1.3.0, thank you for your contribution.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants