diff --git a/HelloWorld/uphone/main.cpp b/HelloWorld/uphone/main.cpp index fcb5cf23f4..3bac293f3a 100644 --- a/HelloWorld/uphone/main.cpp +++ b/HelloWorld/uphone/main.cpp @@ -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(); diff --git a/cocos2dx/platform/uphone/CCXFileUtils_uphone.cpp b/cocos2dx/platform/uphone/CCXFileUtils_uphone.cpp index 5c3c742e67..fc54c61b7d 100644 --- a/cocos2dx/platform/uphone/CCXFileUtils_uphone.cpp +++ b/cocos2dx/platform/uphone/CCXFileUtils_uphone.cpp @@ -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; }