MCPcopy Create free account
hub / github.com/OGSR/OGSR-Engine / Execute

Method Execute

ogsr_engine/xrGame/console_commands.cpp:252–278  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 9

CStringTableClass · 0.85
IsMainMenuActiveFunction · 0.85
MainMenuFunction · 0.85
ReloadLanguageMethod · 0.80
SetLanguageChangedMethod · 0.80
ReloadNamesMethod · 0.80
ExecuteFunction · 0.50
IsActiveMethod · 0.45
ActivateMethod · 0.45

Tested by

no test coverage detected