erpt: Implement 12.0.0 AppletTotalActiveTime tracking

This commit is contained in:
Michael Scire 2021-04-29 21:48:47 -07:00
parent 0dc308d92a
commit ef0c15b764
7 changed files with 291 additions and 206 deletions

View file

@ -126,4 +126,13 @@ namespace ams::erpt::srv {
return ResultSuccess();
}
Result Context::ClearContext(CategoryId cat) {
/* Make an empty record for the category. */
auto record = std::make_unique<ContextRecord>(cat);
R_UNLESS(record != nullptr, erpt::ResultOutOfMemory());
/* Submit the context record. */
return SubmitContextRecord(std::move(record));
}
}