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

Method nameById

3ds/source/loader.cpp:91–107  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

89}
90
91bool TitleCatalog::nameById(std::string& dst, u64 id)
92{
93 std::lock_guard<std::mutex> lock(mMutex);
94 for (const auto& title : mSaves) {
95 if (title.id() == id) {
96 dst = title.shortDescription();
97 return true;
98 }
99 }
100 for (const auto& title : mExtdatas) {
101 if (title.id() == id) {
102 dst = title.shortDescription();
103 return true;
104 }
105 }
106 return false;
107}
108
109int TitleCatalog::indexById(u64 id, BackupKind kind)
110{

Callers 1

titleNameFunction · 0.80

Calls 1

idMethod · 0.45

Tested by

no test coverage detected