erpt: remove deprecated fields, they didn't actually change IDs, just the mapping between id and name table index

This commit is contained in:
Michael Scire
2023-10-11 17:48:40 -07:00
parent cefedb4055
commit 0569392faf
10 changed files with 719 additions and 1406 deletions

View File

@@ -62,11 +62,7 @@ namespace ams::erpt::srv {
static Result AddId(Report *report, FieldId field_id) {
static_assert(MaxFieldStringSize < ElementSize_256);
if (hos::GetVersion() >= hos::Version_17_0_0) {
R_TRY(AddStringValue(report, FieldString[field_id], strnlen(FieldString[field_id], MaxFieldStringSize)));
} else {
R_TRY(AddStringValue(report, DeprecatedFieldString[field_id], strnlen(DeprecatedFieldString[field_id], MaxFieldStringSize)));
}
R_TRY(AddStringValue(report, FieldString[field_id], strnlen(FieldString[field_id], MaxFieldStringSize)));
R_SUCCEED();
}