Skip to content

Add support for any-region NAND bootstrap#72

Open
ZeroSkill1 wants to merge 1 commit into
mikage-emu:mainfrom
ZeroSkill1:bootstrap-anyregion
Open

Add support for any-region NAND bootstrap#72
ZeroSkill1 wants to merge 1 commit into
mikage-emu:mainfrom
ZeroSkill1:bootstrap-anyregion

Conversation

@ZeroSkill1
Copy link
Copy Markdown
Contributor

This adds support for bootstrapping NANDs from any system region, by setting the region value using the CVer title ID found in the system update CFA of the given cart image.

More work is needed for this to work properly, namely because not all cart images contain the shared system fonts. Open-source replacements would be required for those cases.

if (program_info.program_id == 0x4001000022400 ||
program_info.program_id == 0x4003000009d02 ||
program_info.program_id == 0x400300000ba02) {
if (ranges::find(bootstrap_bypass_titles, program_info.program_id)) {
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I'm surprised this worked, since find returns an iterator, not a boolean. Should be:

Suggested change
if (ranges::find(bootstrap_bypass_titles, program_info.program_id)) {
if (ranges::find(bootstrap_bypass_titles, program_info.program_id) != bootstrap_bypass_titles.end()) {

@neobrain
Copy link
Copy Markdown
Member

Thanks! I'll try and clean this up a little next weekend so we can merge it.

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