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

Method translate

ogsr_engine/xrGame/string_table.cpp:153–167  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

151}
152
153STRING_VALUE CStringTable::translate(const STRING_ID& str_id) const
154{
155 VERIFY(pData);
156
157 STRING_VALUE res = pData->m_StringTable[str_id];
158
159 if (!res)
160 {
161 if (WriteErrorsToLog && *str_id != nullptr && xr_strlen(*str_id) > 0)
162 Msg("!![%s] [%s] has no entry!", __FUNCTION__, *str_id);
163 return str_id;
164 }
165
166 return res;
167}

Callers 15

GetBriefInfoMethod · 0.45
RenderUIMethod · 0.45
translate_stringFunction · 0.45
LoadMethod · 0.45
draw_aabbMethod · 0.45
shedule_UpdateMethod · 0.45
MoveActorMethod · 0.45
IR_OnKeyboardPressMethod · 0.45
play_at_posMethod · 0.45
LoadMethod · 0.45
ReloadNamesMethod · 0.45
RenderMethod · 0.45

Calls 2

MsgFunction · 0.85
xr_strlenFunction · 0.50

Tested by

no test coverage detected