memeToasty / 3ds_sorting

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

Pressing start key results in luma crash. #12

Open clearlung opened 4 days ago

clearlung commented 4 days ago

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

clearlung commented 4 days 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.

clearlung commented 3 days 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.