| 353 | } |
| 354 | |
| 355 | void CMapImages::ChangeEntitiesPath(const char *pPath) |
| 356 | { |
| 357 | if(str_comp(pPath, "default") == 0) |
| 358 | str_copy(m_aEntitiesPath, "editor/entities_clear"); |
| 359 | else |
| 360 | { |
| 361 | str_format(m_aEntitiesPath, sizeof(m_aEntitiesPath), "assets/entities/%s", pPath); |
| 362 | } |
| 363 | |
| 364 | for(int ModType = 0; ModType < MAP_IMAGE_MOD_TYPE_COUNT * 2; ++ModType) |
| 365 | { |
| 366 | if(m_aEntitiesIsLoaded[ModType]) |
| 367 | { |
| 368 | for(int LayerType = 0; LayerType < MAP_IMAGE_ENTITY_LAYER_TYPE_COUNT; ++LayerType) |
| 369 | { |
| 370 | Graphics()->UnloadTexture(&m_aaEntitiesTextures[ModType][LayerType]); |
| 371 | } |
| 372 | m_aEntitiesIsLoaded[ModType] = false; |
| 373 | } |
| 374 | } |
| 375 | } |
| 376 | |
| 377 | void CMapImages::ConchainClTextEntitiesSize(IConsole::IResult *pResult, void *pUserData, IConsole::FCommandCallback pfnCallback, void *pCallbackUserData) |
| 378 | { |
no test coverage detected