MCPcopy Create free account
hub / github.com/BernardoGiordano/Checkpoint / titleName

Function titleName

3ds/source/SettingsScreen.cpp:135–142  ·  view source on GitHub ↗

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.

Source from the content-addressed store, hash-verified

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

Callers 1

rebuildRowsMethod · 0.85

Calls 3

getFunction · 0.85
nameByIdMethod · 0.80
emptyMethod · 0.45

Tested by

no test coverage detected