Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Initial implementation of "title.txt" parser cog #1405

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

nicl83
Copy link

@nicl83 nicl83 commented Mar 29, 2025

This is an initial implementation of a parser cog for title.txt files generated by the missingtitles tag (or, more specifically, the Windows tree command).

It makes a few checks:

  • Is there an 00040000 folder? (Helpee may have run tree from the wrong place)
  • Are there any empty folders in title? (00040002 pops up quite often in 3ds-assistance)
  • For each title in 00040000...
    • is the content folder present?
    • is there a .app file?
    • is there a .tmd file?

It then compiles the output of these checks into an easy-to-read message, as shown below:
image
(the "corrupted data" message is triggered when the tree parser hits a line it can't handle - in my testing, this generally happens when FAT32 corruption starts putting newline characters into filenames, but if this causes false positives, it can be removed)

I have tested this using real title.txt files from assistance channels, with the results matching what helpers have told helpees to do, and I have also verified the results by hand - however, I fully welcome further testing.

I'm not expecting this to be merged immediately. I am open to comments on any aspect of this cog - the parser design and implementation, the wording of the messages sent by Kurisu, and so on and so forth.

I hope this is at least somewhat helpful to others 😄

@nicl83
Copy link
Author

nicl83 commented Mar 29, 2025

Further changes added following discussion in #kurisu-development:

  • If the cmd folder is present for a given title, if it is empty, the title is marked as bad
  • DLC, themes, and other installed items are now checked for integrity in addition to regular titles
    image

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.

1 participant