erpt: Add basic (TODO-impl post-prerelease) support for 17.0.0 changes

This commit is contained in:
Michael Scire 2023-10-11 13:32:22 -07:00 committed by SciresM
parent 9d4cb685a7
commit aa170a72a9
15 changed files with 1487 additions and 747 deletions

View file

@ -135,7 +135,7 @@ namespace ams::erpt::srv {
auto record = std::make_unique<ContextRecord>(CategoryId_ProductModelInfo);
R_UNLESS(record != nullptr, erpt::ResultOutOfMemory());
R_TRY(record->Add(FieldId_ProductModel, model, model_len));
R_TRY(record->Add(ERPT_FIELD_ID(ProductModel), model, model_len));
R_TRY(Context::SubmitContextRecord(std::move(record)));
R_SUCCEED();
@ -146,7 +146,7 @@ namespace ams::erpt::srv {
auto record = std::make_unique<ContextRecord>(CategoryId_RegionSettingInfo);
R_UNLESS(record != nullptr, erpt::ResultOutOfMemory());
R_TRY(record->Add(FieldId_RegionSetting, region, region_len));
R_TRY(record->Add(ERPT_FIELD_ID(RegionSetting), region, region_len));
R_TRY(Context::SubmitContextRecord(std::move(record)));
R_SUCCEED();