| 84 | } |
| 85 | |
| 86 | void CTextureDescrMngr::LoadTHM(LPCSTR initial_path) |
| 87 | { |
| 88 | FS_FileSet flist; |
| 89 | FS.file_list(flist, initial_path, FS_ListFiles, "*.thm"); |
| 90 | |
| 91 | #ifdef DEBUG |
| 92 | Msg("count of .thm files=%d", flist.size()); |
| 93 | #endif // #ifdef DEBUG |
| 94 | |
| 95 | FS_FileSetIt It = flist.begin(); |
| 96 | const FS_FileSetIt It_e = flist.end(); |
| 97 | |
| 98 | string_path full_name; |
| 99 | |
| 100 | m_texture_details.reserve(m_texture_details.size() + flist.size()); |
| 101 | m_detail_scalers.reserve(m_detail_scalers.size() + flist.size()); |
| 102 | |
| 103 | for (; It != It_e; ++It) |
| 104 | { |
| 105 | LPCSTR file_nm = It->name.c_str(); |
| 106 | |
| 107 | FS.update_path(full_name, initial_path, file_nm); |
| 108 | IReader* F = FS.r_open(full_name); |
| 109 | |
| 110 | LoadTHMFile(F, file_nm); |
| 111 | } |
| 112 | } |
| 113 | |
| 114 | void CTextureDescrMngr::LoadTHMFile(IReader* F, LPCSTR file_nm) |
| 115 | { |