fatal: Implement PowerControlTask

This commit is contained in:
Michael Scire
2018-11-10 02:42:07 -08:00
parent 1228cd6903
commit aa86d1abfa
4 changed files with 85 additions and 1 deletions

View File

@@ -23,6 +23,9 @@ class PowerControlTask : public IFatalTask {
private:
Event *erpt_event;
Event *battery_event;
private:
bool TryShutdown();
void MonitorBatteryState();
public:
PowerControlTask(FatalContext *ctx, u64 title_id, Event *er_evt, Event *bt_evt) : IFatalTask(ctx, title_id), erpt_event(er_evt), battery_event(bt_evt) { }
virtual Result Run() override;