mirror of
https://github.com/Atmosphere-NX/Atmosphere.git
synced 2025-06-06 01:21:18 -04:00
erpt: add automatic report cleanup mechanism on boot (closes #1795)
This commit is contained in:
parent
9545cbb4cb
commit
9a38be201a
5 changed files with 43 additions and 0 deletions
|
@ -84,6 +84,16 @@ namespace ams {
|
|||
/* Atmosphere always wants to redirect new reports to the SD card, to prevent them from being logged. */
|
||||
erpt::srv::SetRedirectNewReportsToSdCard(true);
|
||||
|
||||
/* Decide whether or not to clean up reports periodically. */
|
||||
{
|
||||
u8 disable_report_cleanup = 0;
|
||||
if (settings::fwdbg::GetSettingsItemValue(std::addressof(disable_report_cleanup), sizeof(disable_report_cleanup), "erpt", "disable_automatic_report_cleanup") == sizeof(disable_report_cleanup)) {
|
||||
erpt::srv::SetEnabledAutomaticReportCleanup(disable_report_cleanup == 0);
|
||||
} else {
|
||||
erpt::srv::SetEnabledAutomaticReportCleanup(true);
|
||||
}
|
||||
}
|
||||
|
||||
/* Configure the OS version. */
|
||||
{
|
||||
settings::system::FirmwareVersion firmware_version = {};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue