MCPcopy Create free account
hub / github.com/axmolengine/axmol / removeSpriteFramesFromFile

Method removeSpriteFramesFromFile

core/2d/SpriteFrameCache.cpp:217–230  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

215}
216
217void SpriteFrameCache::removeSpriteFramesFromFile(std::string_view atlasPath)
218{
219 // const auto fullPath = FileUtils::getInstance()->fullPathForFilename(plist);
220 // auto dict = FileUtils::getInstance()->getValueMapFromFile(fullPath);
221 // if (dict.empty())
222 //{
223 // AXLOGD("axmol:SpriteFrameCache:removeSpriteFramesFromFile: create dict by {} fail.",plist);
224 // return;
225 // }
226 // removeSpriteFramesFromDictionary(dict);
227
228 // remove it from the cache
229 removeSpriteSheet(computeHash(atlasPath));
230}
231
232void SpriteFrameCache::removeSpriteFramesFromFileContent(std::string_view plist_content)
233{

Calls 1

computeHashFunction · 0.85