| 432 | } |
| 433 | |
| 434 | void CSkins7::LoadBotDecoration() |
| 435 | { |
| 436 | Graphics()->UnloadTexture(&m_BotTexture); |
| 437 | |
| 438 | const char *pFilename = SKINS_DIR "/bot.png"; |
| 439 | CImageInfo Info; |
| 440 | if(!Graphics()->LoadPng(Info, pFilename, IStorage::TYPE_ALL) || |
| 441 | !Graphics()->IsImageFormatRgba(pFilename, Info) || |
| 442 | !Graphics()->CheckImageDivisibility(pFilename, Info, 12, 5, false)) |
| 443 | { |
| 444 | log_error("skins7", "Failed to load bot decoration '%s'", pFilename); |
| 445 | Info.Free(); |
| 446 | } |
| 447 | else |
| 448 | { |
| 449 | if(Config()->m_Debug) |
| 450 | { |
| 451 | log_trace("skins7", "Loaded bot decoration '%s'", pFilename); |
| 452 | } |
| 453 | m_BotTexture = Graphics()->LoadTextureRawMove(Info, 0, pFilename); |
| 454 | } |
| 455 | } |
| 456 | |
| 457 | void CSkins7::AddSkinFromConfigVariables(const char *pName, int Dummy) |
| 458 | { |
nothing calls this directly
no test coverage detected