erpt: Implement 12.0.0 AppletTotalActiveTime tracking

This commit is contained in:
Michael Scire committed 2021-04-29 21:48:47 -07:00
1 parent 0dc308d92a
commit ef0c15b764
7 files changed
+291 -206

No files matched your search

@@ -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));
}
}