MCPcopy Create free account
hub / github.com/ddnet/ddnet / SkinScan

Method SkinScan

src/game/client/components/skins7.cpp:178–187  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

176};
177
178int CSkins7::SkinScan(const char *pName, int IsDir, int DirType, void *pUser)
179{
180 if(IsDir || !str_endswith(pName, ".json"))
181 return 0;
182
183 CSkinScanData *pScanData = static_cast<CSkinScanData *>(pUser);
184 pScanData->m_pThis->LoadSkin(pName, DirType);
185 pScanData->m_SkinLoadedCallback();
186 return 0;
187}
188
189bool CSkins7::LoadSkin(const char *pName, int DirType)
190{

Callers

nothing calls this directly

Calls 2

str_endswithFunction · 0.85
LoadSkinMethod · 0.80

Tested by

no test coverage detected