tma: Add working AtmosphereTestService (echoes As)

This commit is contained in:
Michael Scire
2018-12-05 08:33:56 -08:00
parent d875d84d2d
commit 24be9ffc57
13 changed files with 200 additions and 45 deletions

View File

@@ -19,14 +19,19 @@
#include "tma_task.hpp"
#include "tma_service_manager.hpp"
void TmaTask::SetNeedsPackets(bool n) {
this->needs_packets = n;
this->manager->Tick();
}
void TmaTask::Complete() {
/* TODO: Set packet state */
SetNeedsPackets(false);
this->state = TmaTaskState::Complete;
this->manager->Tick();
}
void TmaTask::Cancel() {
/* TODO: Set packet state */
SetNeedsPackets(false);
this->state = TmaTaskState::Canceled;
this->manager->Tick();
}