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

Method icon

3ds/source/loader.cpp:161–171  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

159}
160
161C2D_Image TitleCatalog::icon(int i, BackupKind kind)
162{
163 // Runs on the UI/draw thread, so this is where the icon's texture is created
164 // (lazily, by IconStore::get) — the loader worker only ever stored raw bytes.
165 std::lock_guard<std::mutex> lock(mMutex);
166 auto& vec = kind == BackupKind::Save ? mSaves : mExtdatas;
167 if (i >= 0 && i < (int)vec.size()) {
168 return mIcons.get(vec.at(i).id());
169 }
170 return Gui::noIcon();
171}
172
173bool TitleCatalog::favorite(int i, BackupKind kind)
174{

Callers 2

drawTileMethod · 0.45
drawRowContentMethod · 0.45

Calls 4

atMethod · 0.80
sizeMethod · 0.45
getMethod · 0.45
idMethod · 0.45

Tested by

no test coverage detected