Skip to content

Parse XboxOne/SX Title IDs#897

Merged
mnadareski merged 4 commits intoSabreTools:masterfrom
Deterous:master
Oct 13, 2025
Merged

Parse XboxOne/SX Title IDs#897
mnadareski merged 4 commits intoSabreTools:masterfrom
Deterous:master

Conversation

@Deterous
Copy link
Copy Markdown
Member

Requires RedumpLib bump SabreTools/SabreTools.RedumpLib#12

Comment on lines +784 to +789
if (catalog == null)
return null;
if (!string.IsNullOrEmpty(catalog.TitleID))
return catalog.TitleID;
if (catalog.Packages == null)
return null;
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Minor cosmetic tweak

Suggested change
if (catalog == null)
return null;
if (!string.IsNullOrEmpty(catalog.TitleID))
return catalog.TitleID;
if (catalog.Packages == null)
return null;
if (!string.IsNullOrEmpty(catalog?.TitleID))
return catalog.TitleID;
if (catalog?.Packages == null)
return null;

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems like you already merged but feel free to change this

int i = 0;
foreach (var package in catalog.Packages)
{
if (package != null && package.TitleID != null)
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

package can be null?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I could create a catalog.js where that is the case, so I thought why not do the check in MPF just in case

@mnadareski mnadareski merged commit e8d1567 into SabreTools:master Oct 13, 2025
1 check passed
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