mirror of https://github.com/axmolengine/axmol.git
Use getInstance() instead of deprecated sharedFileUtils()
This commit is contained in:
parent
ca8bc2ca4a
commit
8e897d1902
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue