CCDictionary<std::string, CCObject*> *CCFileUtils::dictionaryWithContentsOfFile(const char *pFileName) { CCDictionary<std::string, CCObject*> *ret = dictionaryWithContentsOfFileThreadSafe(pFileName); ret->autorelease(); return ret; }
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; }