Skip to content

Conversation

@R-YaTian
Copy link
Contributor

This change is mainly to correctly pass the appmemtype parameter to cmdbuf[6].
The NS module writes the content of cmdbuf[6] to offset 0x400 of the Firm Launch parameters so that the device can write it to 0x1FF80030 during boot.
However, when the NS module performs the auto-boot mechanism, it reads the target program’s exheader, compares the program’s memtype with the value at 0x1FF80030, and if they don’t match, the NS module will reboot again using the program’s memtype.
As a result, if you use the NS_RebootToTitle function to launch a mode3 program, the NS module will perform an extra reboot.
Therefore, it is necessary to pass the correct appmemtype to the NS_RebootToTitle function instead of using 0x0.

@TuxSH TuxSH merged commit cb0cd33 into devkitPro:master Sep 26, 2025
1 check passed
@R-YaTian R-YaTian deleted the ns_patch branch September 28, 2025 08:19
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