积木

No sub title

  C++博客 :: 首页 :: 联系 :: 聚合  :: 管理
  140 Posts :: 1 Stories :: 11 Comments :: 0 Trackbacks

常用链接

留言簿(1)

我参与的团队

搜索

  •  

最新评论

阅读排行榜

评论排行榜

 1 void CShopData::generateWebDataSaveFileName(std::string &strFileName) {
 2 
 3     CCFileUtils *pCCFileUtils = CCFileUtils::sharedFileUtils();
 4 #if defined(WIN32) || defined(_WIN32)
 5     SSString path = "";
 6 #elif defined(IOS) || defined(__APPLE__)
 7     SSString path = pCCFileUtils->getWritablePath();
 8     //path += "log/";
 9 #else
10     SSString path = "/mnt/sdcard/external-sd/";
11 #endif
12 
13     strFileName = path.c_str();
14     strFileName += g_pcszWebDataSaveFile;
15 
16     CWebUrlConfig *pUrlCfg = CWebUrlConfigInstance::singleton();
17     std::string strGameId = pUrlCfg->getWebUrlAddress("gameid");
18     strFileName = strFileName + strGameId + ".json";
19 
20 
21 //     strFileName = g_pcszWebDataSaveFile;
22 //     CWebUrlConfig *pUrlCfg = CWebUrlConfigInstance::singleton();
23 //     std::string strGameId = pUrlCfg->getWebUrlAddress("gameid");
24 //     strFileName = strFileName + strGameId + ".json";
25 }
posted on 2014-11-13 10:42 Jacc.Kim 阅读(278) 评论(0)  编辑 收藏 引用 所属分类: 游戏

只有注册用户登录后才能发表评论。
网站导航: 博客园   IT新闻   BlogJava   知识库   博问   管理