MCPcopy Create free account
hub / github.com/ddnet/ddnet / AddString

Method AddString

src/game/localization.cpp:243–246  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

241}
242
243void CLocalizationDatabase::AddString(const char *pOrgStr, const char *pNewStr, const char *pContext)
244{
245 m_vStrings.emplace_back(str_quickhash(pOrgStr), str_quickhash(pContext), m_StringsHeap.StoreString(*pNewStr ? pNewStr : pOrgStr));
246}
247
248const char *CLocalizationDatabase::FindString(unsigned Hash, unsigned ContextHash) const
249{

Callers 12

RecordPlayerDropMethod · 0.45
RecordPlayerNameMethod · 0.45
RecordConsoleCommandMethod · 0.45
RecordTeamSaveSuccessMethod · 0.45
RecordTeamLoadSuccessMethod · 0.45
RecordDDNetVersionMethod · 0.45
RecordAuthInitialMethod · 0.45
RecordAuthLoginMethod · 0.45
SendSaveCodeMethod · 0.45
ExpectAddString5Function · 0.45
TESTFunction · 0.45

Calls 2

str_quickhashFunction · 0.85
StoreStringMethod · 0.80

Tested by 2

ExpectAddString5Function · 0.36
TESTFunction · 0.36