erpt: implement new 21.0.0 commands
This commit is contained in:
@@ -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());
|
||||
|
||||
Reference in New Issue
Block a user