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

Invoke 'UpdateConfigNANDSavegame' command after writing EULAs #3

Merged
merged 3 commits into from
Oct 21, 2024

Conversation

DimitriPilot3
Copy link
Contributor

Code changes:

Explanation:

The original EULASetter source code refers to a libctru function named CFG_UpdateConfigNANDSavegame, which has been renamed to CFG_UpdateConfigSavegame since libctru 1.4.0 (or so). This function invokes a CFG service command of the same name. Without it, changes to the EULAs made in DSES are only made in memory and may be lost after the system reboots or is powered off.

After writing EULAs to the config info block, call the
`CFG_UpdateConfigSavegame()` function (which was formerly named
`CFG_UpdateConfigNANDSavegame()` in older versions of libctru).

This is a code change, mimicking the behaviour of the
EULASetter app that DSES is based on.

This also tweaks some of the messages printed to the screen.

Fixes an issue in which EULAs weren't guaranteed to persist
after the system reboots or is powered off.
@noirscape
Copy link
Owner

Thanks a ton for the PR! I'll merge and release it ASAP - code looks good!

@noirscape noirscape merged commit 7ca2d6a into noirscape:master Oct 21, 2024
noirscape added a commit that referenced this pull request Oct 21, 2024
This release fixes #1 and fixes #2 (using PR #3).

In short, DSES was not calling the CFG_UpdateConfigSavegame function when it was supposed to.

Thanks to @DimitriPilot3 for fixing this bug!
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.

EULA settings do not persist across reboots
2 participants