New issue
 Projects > cocos2d-x > Issues > Bug #4347

Resources have not finished loading

Bug #4347 [New]
oyaknga@gmail.com 2014-03-11 09:06

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.push
back(filePath);

Resources have not finished loading " configFileList.pushback(filePath); "

Atom PDF

Status:New
Start date:2014-03-11
Priority:Low
Due date:
Assignee:-
% Done:

0%

Category:-
Target version:-

Sign up for our newsletter to keep up with the latest developments, releases and updates for Cocos2d-x.