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

Method InitChecksum

src/engine/client/client.cpp:4193–4205  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4191}
4192
4193void CClient::InitChecksum()
4194{
4195 CChecksumData *pData = &m_Checksum.m_Data;
4196 pData->m_SizeofData = sizeof(*pData);
4197 str_copy(pData->m_aVersionStr, GAME_NAME " " GAME_RELEASE_VERSION " (" CONF_PLATFORM_STRING "; " CONF_ARCH_STRING ")");
4198 pData->m_Start = time_get();
4199 os_version_str(pData->m_aOsVersion, sizeof(pData->m_aOsVersion));
4200 secure_random_fill(&pData->m_Random, sizeof(pData->m_Random));
4201 pData->m_Version = GameClient()->DDNetVersion();
4202 pData->m_SizeofClient = sizeof(*this);
4203 pData->m_SizeofConfig = sizeof(pData->m_Config);
4204 pData->InitFiles();
4205}
4206
4207#ifndef DDNET_CHECKSUM_SALT
4208// salt@checksum.ddnet.tw: db877f2b-2ddb-3ba6-9f67-a6d169ec671d

Callers 1

RunMethod · 0.45

Calls 5

time_getFunction · 0.85
os_version_strFunction · 0.85
secure_random_fillFunction · 0.85
DDNetVersionMethod · 0.80
str_copyFunction · 0.50

Tested by

no test coverage detected