erpt: Add some missed 20.0.0+ FsInfo changes
This commit is contained in:
@@ -426,13 +426,7 @@ namespace ams::erpt::srv {
|
||||
auto report_guard = SCOPE_GUARD {
|
||||
const auto delete_res = report->Delete();
|
||||
R_ASSERT(delete_res);
|
||||
AMS_UNUSED(delete_res);
|
||||
/* if (erpt::ResultInvalidPowerState::Includes(result)) {
|
||||
* Nintendo ignores this and sends "power_state_violation" play report if this error happens.
|
||||
* } else {
|
||||
* Nintendo sends "write_failure" play report if any other error happens.
|
||||
* }
|
||||
*/
|
||||
AMS_UNUSED(delete_res);
|
||||
};
|
||||
|
||||
R_TRY(Context::WriteContextsToReport(report.get()));
|
||||
@@ -499,6 +493,20 @@ namespace ams::erpt::srv {
|
||||
static_cast<void>(Context::ClearContext(CategoryId_ErrorInfo));
|
||||
static_cast<void>(Context::ClearContext(CategoryId_ErrorInfoAuto));
|
||||
static_cast<void>(Context::ClearContext(CategoryId_ErrorInfoDefaults));
|
||||
|
||||
#if defined(ATMOSPHERE_OS_HORIZON)
|
||||
/* TODO: What else is missing? */
|
||||
if (hos::GetVersion() >= hos::Version_17_0_0 && flags.Test<CreateReportOptionFlag::SubmitFsInfo>()) {
|
||||
ClearFsInfo();
|
||||
}
|
||||
|
||||
/* if (erpt::ResultInvalidPowerState::Includes(...)) {
|
||||
* Nintendo ignores this and sends "power_state_violation" play report if this error happens.
|
||||
* } else {
|
||||
* Nintendo sends "write_failure" play report if any other error happens.
|
||||
* }
|
||||
*/
|
||||
#endif
|
||||
};
|
||||
|
||||
/* Get the context entry pointer. */
|
||||
|
||||
Reference in New Issue
Block a user