mirror of https://github.com/axmolengine/axmol.git
[uphone] don't block when zip resources loading failed
This commit is contained in:
parent
d243f01b20
commit
ead71525e2
|
@ -15,8 +15,9 @@ Int32 TG3AppMain(const TUChar * pAppID, UInt32 nCmd, void * pCmdParam)
|
|||
{
|
||||
AppDelegate app;
|
||||
|
||||
#ifndef _TRANZDA_VM_ // on uphone emulator, we copy resources files to Work7/TG3/APP/ folder instead of zip file
|
||||
cocos2d::CCFileUtils::setResource("TestCocos2dx.zip");
|
||||
// on uphone emulator, we copy resources files to Work7/TG3/APP/ folder instead of zip file
|
||||
#ifndef _TRANZDA_VM_
|
||||
cocos2d::CCFileUtils::setResource("HelloWorld.zip");
|
||||
#endif
|
||||
|
||||
app.Run();
|
||||
|
|
|
@ -261,7 +261,8 @@ void setZipFilePath(const char* pZipFileName)
|
|||
strErr += " not exist!";
|
||||
TUChar szText[EOS_FILE_MAX_PATH] = { 0 };
|
||||
TUString::StrUtf8ToStrUnicode(szText,(Char*)strErr.c_str());
|
||||
TApplication::GetCurrentApplication()->MessageBox(szText,NULL,WMB_OK);
|
||||
// TApplication::GetCurrentApplication()->MessageBox(szText,NULL,WMB_OK);
|
||||
TMessageBox box(szText, NULL, WMB_OK); // to be fix. This line isn't work, but not block
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue