void DataReaderHelper::addDataFromFileAsync(const std::string& imagePath, const std::string& plistPath, const std::string& filePath, Object target, SEL_SCHEDULE selector) { / * Check if file is already added to ArmatureDataManager, if then return. / for(unsigned int i = 0; i < _configFileList.size(); i++) { if (_configFileList[i] == filePath) { if (target && selector) { if (_asyncRefTotalCount == 0 && _asyncRefCount == 0) { (target->*selector)(1); } else { (target->selector)((_asyncRefTotalCount - asyncRefCount) / (float)_asyncRefTotalCount); } } return; } } _configFileList.pushback(filePath);
Resources have not finished loading " configFileList.pushback(filePath); "
Atom PDF
0%
void DataReaderHelper::addDataFromFileAsync(const std::string& imagePath, const std::string& plistPath, const std::string& filePath, Object target, SEL_SCHEDULE selector)
{
/
* Check if file is already added to ArmatureDataManager, if then return.
/
for(unsigned int i = 0; i < _configFileList.size(); i++)
{
if (_configFileList[i] == filePath)
{
if (target && selector)
{
if (_asyncRefTotalCount == 0 && _asyncRefCount == 0)
{
(target->*selector)(1);
}
else
{
(target->selector)((_asyncRefTotalCount - asyncRefCount) / (float)_asyncRefTotalCount);
}
}
return;
}
}
_configFileList.pushback(filePath);
Resources have not finished loading " configFileList.pushback(filePath); "