- Joined
- Jul 21, 2007
- Messages
- 3,227
- Trophies
- 1
- Age
- 43
- Location
- somewhere
- Website
- spinalcode.co.uk
- XP
- 3,416
- Country
So I'm trying to get my app to play nicely with the system, had a look at blargsnes's main() & I've built my main loop around
Code:APP_STATUS status; while((blah) && (status = aptGetStatus()) != APP_EXITING) { if (status == APP_RUNNING) { (blah) } else if (status == APP_SUSPENDING) { (blah) aptReturnToMenu(); } else if (status == APP_PREPARE_SLEEPMODE) { (blah) aptSignalReadyForSleep(); aptWaitStatusEvent(); } }
..and now sleep mode works nicely (console sleeps when closed, my app resumes when opened), but suspending still doesn't work - when I press the home button everything locks up immediately, it doesn't get as far as making the noise and zooming out to the home menu. Any suggestions? Thanks.
FWIW, pressing the power button works (app closes normally), as does the app exiting of its own accord.
Did you ever get this situation sorted out? I'm having the same trouble right now.