| 250 | }; |
| 251 | |
| 252 | void Execute(LPCSTR args) override |
| 253 | { |
| 254 | CCC_Token::Execute(args); |
| 255 | CStringTable().ReloadLanguage(); |
| 256 | |
| 257 | if (IsMainMenuActive()) |
| 258 | MainMenu()->SetLanguageChanged(true); |
| 259 | |
| 260 | if (!g_pGameLevel) |
| 261 | return; |
| 262 | |
| 263 | if (g_pGamePersistent && MainMenu() && MainMenu()->IsActive()) |
| 264 | { |
| 265 | MainMenu()->Activate(FALSE); |
| 266 | MainMenu()->Activate(TRUE); |
| 267 | } |
| 268 | |
| 269 | for (u16 id = 0; id < 0xffff; id++) |
| 270 | { |
| 271 | auto gameObj = Level().Objects.net_Find(id); |
| 272 | if (gameObj) |
| 273 | { |
| 274 | if (auto invItem = smart_cast<CInventoryItem*>(gameObj)) |
| 275 | invItem->ReloadNames(); |
| 276 | } |
| 277 | } |
| 278 | } |
| 279 | }; |
| 280 | |
| 281 | #ifdef DEBUG |
nothing calls this directly
no test coverage detected