mirror of
https://github.com/Atmosphere-NX/Atmosphere.git
synced 2025-05-23 03:06:52 -04:00
erpt: Implement 12.0.0 AppletTotalActiveTime tracking
This commit is contained in:
parent
0dc308d92a
commit
ef0c15b764
7 changed files with 291 additions and 206 deletions
|
@ -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));
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue