mirror of https://github.com/axmolengine/axmol.git
jump a messagebox when load image failed in uphone.
This commit is contained in:
parent
575922ab7c
commit
0c687c3aac
|
@ -146,6 +146,16 @@ bool UIImage::initWithContentsOfFile(const string &strPath, tImageFormat imageTy
|
|||
}
|
||||
}
|
||||
|
||||
if (!bRet)
|
||||
{
|
||||
std::string strErr = "Load ";
|
||||
strErr += strPath;
|
||||
strErr += " failed!";
|
||||
TUChar szText[256] = { 0 };
|
||||
TUString::StrUtf8ToStrUnicode(szText,(Char*)strErr.c_str());
|
||||
TApplication::GetCurrentApplication()->MessageBox(szText,NULL,WMB_OK);
|
||||
}
|
||||
|
||||
return bRet;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue