| 215 | } |
| 216 | |
| 217 | void 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 | |
| 232 | void SpriteFrameCache::removeSpriteFramesFromFileContent(std::string_view plist_content) |
| 233 | { |