| 409 | } |
| 410 | |
| 411 | void ParseLayoutFile(const wchar_t * pszFileName,map<wstring,int> &mapName2ID,int & nStartId) |
| 412 | { |
| 413 | TiXmlDocument xmlLayout; |
| 414 | FILE *f = _wfopen(pszFileName,L"rb"); |
| 415 | if(!f) return; |
| 416 | |
| 417 | if(xmlLayout.LoadFile(f)) |
| 418 | { |
| 419 | TiXmlElement *pXmlNode = xmlLayout.RootElement(); |
| 420 | //���������skin��� |
| 421 | if(stricmp(pXmlNode->Value(),"soui") == 0) |
| 422 | ParseLayout(pXmlNode->FirstChildElement("root"),mapName2ID,nStartId); |
| 423 | else |
| 424 | ParseLayout(pXmlNode,mapName2ID,nStartId); |
| 425 | }else |
| 426 | { |
| 427 | wprintf(L"!!!err: Load Layout XML Failed! file name: %s\n",pszFileName); |
| 428 | } |
| 429 | fclose(f); |
| 430 | } |
| 431 | |
| 432 | //��UIDef���String,Color Table |
| 433 | __int64 ParseUIDefFile(map<string,string> &mapFiles, const wchar_t * pszFileName,map<string,int> &mapString,map<string,int> &mapColor) |
no test coverage detected