PretendoNetwork / nimbus

GNU General Public License v3.0
117 stars 10 forks source link

patches/act: Fix crash with no accounts #25

Closed DaniElectra closed 4 months ago

DaniElectra commented 5 months ago

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.