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

patches/act: Fix crash with no accounts #25

Merged
merged 1 commit into from
Feb 22, 2024

Conversation

DaniElectra
Copy link
Member

This ACT patch changes a function with counts the number of accounts of the system to always report 1 account. If there are no accounts, such as on a system format or on a fresh Citra instance, this would make the sysmodule try to read from non-existent data.

We replace the patch to allow the sysmodule to enter the counting loop, but only once. After finishing the loop, we jump out of it to the end and return the count.

This ACT patch changes a function with counts the number of accounts of
the system to always report 1 account. If there are no accounts, such as
on a system format or on a fresh Citra instance, this would make the
sysmodule try to read from non-existent data.

We replace the patch to allow the sysmodule to enter the counting loop,
but only once. After finishing the loop, we jump out of it to the end
and return the count.
@jonbarrow jonbarrow merged commit a1853c2 into PretendoNetwork:main Feb 22, 2024
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.

None yet

2 participants