erpt: implement new 21.0.0 commands

This commit is contained in:
Michael Scire
2025-11-12 16:18:13 -07:00
committed by SciresM
parent 4f1201a022
commit e1d82a13f3
6 changed files with 175 additions and 24 deletions

View File

@@ -124,6 +124,10 @@ namespace ams::erpt::srv {
}
}
constexpr inline bool IsValidCategory(CategoryId id) {
return FindCategoryIndex(id).has_value();
}
constexpr inline CategoryId ConvertFieldToCategory(FieldId id) {
const auto index = FindFieldIndex(id);
AMS_ASSERT(index.has_value());