Wrong access to CCApplication::sharedApplication() pointer

This commit is contained in:
Squallium 2012-08-23 22:53:16 +02:00
parent 5fb9563c63
commit bd09615a26
1 changed files with 2 additions and 2 deletions

View File

@ -45,7 +45,7 @@ void CCFileUtils::purgeCachedEntries()
const char* CCFileUtils::fullPathFromRelativePath(const char *pszRelativePath)
{
const char* pszRootPath = CCApplication::sharedApplication().getResourceRootPath();
const char* pszRootPath = CCApplication::sharedApplication()->getResourceRootPath();
CCString* pRet = CCString::create(pszRootPath);
const char* resDir = CCFileUtils::sharedFileUtils()->getResourceDirectory();
@ -104,7 +104,7 @@ unsigned char* CCFileUtils::getFileData(const char* pszFileName, const char* psz
string CCFileUtils::getWriteablePath() {
//return current resource path
return CCApplication::sharedApplication().getResourceRootPath();
return CCApplication::sharedApplication()->getResourceRootPath();
}
NS_CC_END