MCPcopy Create free account
hub / github.com/IppClub/Dora-SSR / load

Method load

Source/Cache/DragonBoneCache.cpp:186–198  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

184}
185
186std::pair<db::DragonBonesData*, std::string> DragonBoneCache::load(String boneStr) {
187 if (_asyncLoadCount > 0) {
188 Error("can not get DragonBone data from \"{}\" during async loading.", boneStr.toString());
189 return {nullptr, Slice::Empty};
190 }
191 std::string boneFile, atlasFile, armatureName;
192 std::tie(boneFile, atlasFile, armatureName) = getFileFromStr(boneStr);
193 if (boneFile.empty() || atlasFile.empty()) return {nullptr, Slice::Empty};
194 if (armatureName.empty()) {
195 return load(boneFile, atlasFile);
196 }
197 return {load(boneFile, atlasFile).first, armatureName};
198}
199
200std::pair<db::DragonBonesData*, std::string> DragonBoneCache::load(String boneFile, String atlasFile) {
201 if (_asyncLoadCount > 0) {

Callers

nothing calls this directly

Calls 9

getPathFunction · 0.85
loadFunction · 0.70
toStringMethod · 0.65
loadMethod · 0.65
ErrorEnum · 0.50
concatClass · 0.50
emptyMethod · 0.45
setTextureMethod · 0.45
frontMethod · 0.45

Tested by

no test coverage detected