MCPcopy Create free account
hub / github.com/OpenMC2/OpenMC2 / get_language_id

Function get_language_id

src/Game.cpp:238–247  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

236};
237
238int get_language_id(const char *path) {
239 for (int i = 0; i < 10; ++i) {
240 const char *language = LanguageShortList[i];
241
242 if (stricmp(path, language) == 0) {
243 return i;
244 }
245 }
246 return -1;
247}
248
249const char *get_language_string(int id) {
250 return LanguageShortList[id];

Callers 3

sub_53A000Function · 0.85
tree_load_settingsMethod · 0.85
load_settingsMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected