Use getInstance() instead of deprecated sharedFileUtils()

This commit is contained in:
folecr 2013-07-24 16:57:15 -07:00
parent ca8bc2ca4a
commit 8e897d1902
1 changed files with 1 additions and 1 deletions

View File

@ -46,7 +46,7 @@ namespace CocosDenshion {
std::string getFullPathWithoutAssetsPrefix(const char* pszFilename) {
// Changing file path to full path
std::string fullPath = cocos2d::FileUtils::sharedFileUtils()->fullPathForFilename(pszFilename);
std::string fullPath = cocos2d::FileUtils::getInstance()->fullPathForFilename(pszFilename);
// Removing `assets` since it isn't needed for the API of playing sound.
size_t pos = fullPath.find("assets/");
if (pos == 0)