fixed #1292: Renamed CCFileUtils::popupNotify to CCFileUtils::setPopupNotify

This commit is contained in:
James Chen 2012-06-20 14:38:13 +08:00
parent 24e3ec7499
commit f8ebbccb98
4 changed files with 5 additions and 5 deletions

View File

@ -289,11 +289,11 @@ bool CCParticleSystem::initWithDictionary(CCDictionary *dictionary)
{
// set not pop-up message box when load image failed
bool bNotify = CCFileUtils::sharedFileUtils()->isPopupNotify();
CCFileUtils::sharedFileUtils()->popupNotify(false);
CCFileUtils::sharedFileUtils()->setPopupNotify(false);
tex = CCTextureCache::sharedTextureCache()->addImage(fullpath.c_str());
// reset the value of UIImage notify
CCFileUtils::sharedFileUtils()->popupNotify(bNotify);
CCFileUtils::sharedFileUtils()->setPopupNotify(bNotify);
}
if (tex)

View File

@ -157,7 +157,7 @@ public:
/**
@brief Set/Get whether pop-up a message box when the image load failed
*/
void popupNotify(bool bNotify);
void setPopupNotify(bool bNotify);
bool isPopupNotify();
};

View File

@ -443,7 +443,7 @@ bool CCFileUtils::iPhoneRetinaDisplayFileExistsAtPath(const char *filename)
//////////////////////////////////////////////////////////////////////////
static bool s_bPopupNotify = true;
void CCFileUtils::popupNotify(bool bNotify)
void CCFileUtils::setPopupNotify(bool bNotify)
{
s_bPopupNotify = bNotify;
}

View File

@ -477,7 +477,7 @@ unsigned char* CCFileUtils::getFileData(const char* pszFileName, const char* psz
// notification support when getFileData from a invalid file
static bool s_bPopupNotify = true;
void CCFileUtils::popupNotify(bool bNotify)
void CCFileUtils::setPopupNotify(bool bNotify)
{
s_bPopupNotify = bNotify;
}