MCPcopy Create free account
hub / github.com/TorqueGameEngines/Torque3D / getCurrentModLangTable

Function getCurrentModLangTable

Engine/source/i18n/lang.cpp:465–475  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

463}
464
465const LangTable *getCurrentModLangTable()
466{
467 UTF8 saneVarName[256];
468
469 if(getCurrentModVarName(saneVarName, sizeof(saneVarName)))
470 {
471 const LangTable *lt = dynamic_cast<LangTable *>(Sim::findObject(Con::getIntVariable((const char*)saneVarName)));
472 return lt;
473 }
474 return NULL;
475}
476
477const LangTable *getModLangTable(const UTF8 *mod)
478{

Callers

nothing calls this directly

Calls 3

getCurrentModVarNameFunction · 0.85
getIntVariableFunction · 0.85
findObjectFunction · 0.50

Tested by

no test coverage detected