memeToasty / 3ds_sorting

Visualisation of some sorting algorithms on the Nintendo 3DS
6 stars 2 forks source link

Pressing start key results in luma crash. #12

Open ghost opened 1 month ago

ghost commented 1 month ago

Platform: n3ds Issue: Pressing start results in a crash on the n3ds. OBSOLETE~~Solution: Move the start keypress check before activeMenu->handleInput()~~

ghost commented 1 month ago

It seems that the issue is primarily present when the start key is pressed during a sort. From the fix I submitted, the program didn't crash when quiting it in the middle of the first 5 or so sorts I did. When I increased the array elements to 100 and tried to reproduce the issue, my fork also crashed.

ghost commented 1 month ago

Added another commit to my pull request that fixes this issue by preventing quitting in the middle of a sort. Also to prevent starting another sort when a sort is already running.