Esempio n. 1
0
CCDictionary<std::string, CCObject*> *CCFileUtils::dictionaryWithContentsOfFile(const char *pFileName)
{
	CCDictionary<std::string, CCObject*> *ret = dictionaryWithContentsOfFileThreadSafe(pFileName);
	ret->autorelease();

	return ret;
}
Esempio n. 2
0
CCDictionary *CCFileUtils::dictionaryWithContentsOfFile(const char *pFileName)
{
	//convert to full path
	std::string fileFullPath;
	fileFullPath = CCFileUtils::fullPathFromRelativePath(pFileName);
	CCDictionary *ret = dictionaryWithContentsOfFileThreadSafe(fileFullPath.c_str());
	ret->autorelease();

	return ret;
}