| 1207 | |
| 1208 | // ADDED - check if wrp file exists |
| 1209 | RString fullname = GetWorldName(name); |
| 1210 | if (!QIFStreamB::FileExist(fullname)) |
| 1211 | { |
| 1212 | continue; |
| 1213 | } |
| 1214 | |
| 1215 | int index = lbox->AddString(Pars >> "CfgWorlds" >> name >> "description"); |
| 1216 | lbox->SetData(index, name); |
| 1217 | if (stricmp(name, Glob.header.worldname) == 0) |
| 1218 | { |
| 1219 | sel = index; |
| 1220 | } |
| 1221 | RString textureName = Pars >> "CfgWorlds" >> name >> "icon"; |
| 1222 | RString fullName = FindPicture(textureName); |
| 1223 | fullName.Lower(); |
| 1224 | Ref<Texture> texture = GlobLoadTexture(fullName); |
| 1225 | lbox->SetTexture(index, texture); |
| 1226 | } |
| 1227 | lbox->SetCurSel(sel); |
nothing calls this directly
no test coverage detected