]> Chaos Git - corbenik/ctrulib.git/commitdiff
aptMainLoop(): Add handling for APP_PREPARE_SLEEPMODE
authorfincs <fincs.alt1@gmail.com>
Tue, 4 Nov 2014 23:24:24 +0000 (00:24 +0100)
committerfincs <fincs.alt1@gmail.com>
Tue, 4 Nov 2014 23:24:24 +0000 (00:24 +0100)
libctru/source/services/apt.c

index 2f4507abb86fc9da0bc441f2311204ba19543699..7bd0799e5d6a07fccf1159929c9e485a5a292c10 100644 (file)
@@ -408,9 +408,11 @@ bool aptMainLoop()
                        case APP_SUSPENDING:
                                aptReturnToMenu();
                                break;
+                       case APP_PREPARE_SLEEPMODE:
+                               aptSignalReadyForSleep();
+                               // Fall through
                        default:
                        //case APP_NOTINITIALIZED:
-                       //case APP_PREPARE_SLEEPMODE:
                        //case APP_SLEEPMODE:
                                aptWaitStatusEvent();
                                break;