Resolves a title id to its short description, falling back to the hex id for titles not present in the catalog (e.g. a cart that isn't inserted). Copies out one string, not a full Title.
| 133 | // for titles not present in the catalog (e.g. a cart that isn't inserted). |
| 134 | // Copies out one string, not a full Title. |
| 135 | std::string titleName(u64 id) |
| 136 | { |
| 137 | std::string name; |
| 138 | if (TitleCatalog::get().nameById(name, id) && !name.empty()) { |
| 139 | return name; |
| 140 | } |
| 141 | return StringUtils::format("%016llX", id); |
| 142 | } |
| 143 | |
| 144 | } |
| 145 |
no test coverage detected