fatal: Implement StateTransitionStopTask

This commit is contained in:
Michael Scire 2018-11-10 01:19:52 -08:00
parent 4d1481e2eb
commit b771c42f7f
4 changed files with 69 additions and 9 deletions

View file

@ -19,6 +19,7 @@
#include "fatal_task.hpp"
#include "fatal_task_error_report.hpp"
#include "fatal_task_power.hpp"
static constexpr size_t MaxTasks = 8;
@ -50,9 +51,9 @@ void RunFatalTasks(FatalContext *ctx, u64 title_id, bool error_report, Event *er
RunTask(new ErrorReportTask(ctx, title_id, error_report, erpt_event));
/* TODO: RunTask(new PowerControlTask(ctx, title_id, battery_event)); */
/* TODO: RunTask(new ShowFatalTask(ctx, title_id, battery_event)); */
/* TODO: RunTask(new StopSoundTask()); */
/* TODO: RunTask(new BacklightControlTask()); */
/* TODO: RunTask(new AdjustClockTask()); */
/* TODO: RunTask(new PowerButtonTask(erpt_event)); */
/* TODO: RunTask(new StateTransitionStop()); */
/* TODO: RunTask(new StopSoundTask(ctx, title_id)); */
/* TODO: RunTask(new BacklightControlTask(ctx, title_id)); */
/* TODO: RunTask(new AdjustClockTask(ctx, title_id)); */
/* TODO: RunTask(new PowerButtonTask(ctx, title_id, erpt_event)); */
RunTask(new StateTransitionStopTask(ctx, title_id));
}