| 67 | } |
| 68 | |
| 69 | void CMainMenu::ReadTextureInfo() |
| 70 | { |
| 71 | if (pSettings->section_exist("texture_desc")) |
| 72 | { |
| 73 | const LPCSTR itemsList = pSettings->r_string("texture_desc", "files"); |
| 74 | if (itemsList) |
| 75 | { |
| 76 | const int itemsCount = _GetItemCount(itemsList); |
| 77 | |
| 78 | string256 single_item; |
| 79 | for (int i = 0; i < itemsCount; i++) |
| 80 | { |
| 81 | _GetItem(itemsList, i, single_item); |
| 82 | strcat_s(single_item, ".xml"); |
| 83 | CUITextureMaster::ParseShTexInfo(single_item); |
| 84 | } |
| 85 | } |
| 86 | } |
| 87 | |
| 88 | // autoload |
| 89 | FS_FileSet fset; |
| 90 | FS.file_list(fset, "$game_config$", FS_ListFiles, "ui\\textures_descr\\*.xml"); |
| 91 | FS_FileSetIt fit = fset.begin(); |
| 92 | FS_FileSetIt fit_e = fset.end(); |
| 93 | |
| 94 | for (; fit != fit_e; ++fit) |
| 95 | { |
| 96 | string_path fn1, fn2, fn3; |
| 97 | _splitpath((*fit).name.c_str(), fn1, fn2, fn3, 0); |
| 98 | |
| 99 | xr_strcpy(fn1, "textures_descr\\"); |
| 100 | xr_strcat(fn1, fn3); |
| 101 | xr_strcat(fn1, ".xml"); |
| 102 | |
| 103 | //xr_string fn1 = (*fit).name; |
| 104 | |
| 105 | CUITextureMaster::ParseShTexInfo(fn1); |
| 106 | } |
| 107 | } |
| 108 | |
| 109 | extern ENGINE_API BOOL bShowPauseString; |
| 110 |
nothing calls this directly
no test coverage detected