MCPcopy Create free account
hub / github.com/alliedmodders/sourcemod / sm_GetLanguageByCode

Function sm_GetLanguageByCode

core/logic/smn_lang.cpp:159–170  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

157}
158
159static cell_t sm_GetLanguageByCode(IPluginContext *pContext, const cell_t *params)
160{
161 char *code;
162 unsigned int langid;
163
164 pContext->LocalToString(params[1], &code);
165
166 if (g_Translator.GetLanguageByCode(code, &langid))
167 return langid;
168
169 return -1;
170}
171
172static cell_t sm_GetLanguageByName(IPluginContext *pContext, const cell_t *params)
173{

Callers

nothing calls this directly

Calls 1

GetLanguageByCodeMethod · 0.80

Tested by

no test coverage detected