MCPcopy Create free account
hub / github.com/BohemiaInteractive/CWR / GetReferenceCRC

Function GetReferenceCRC

engine/Poseidon/Network/Network.cpp:127–137  ·  view source on GitHub ↗

check known valid client crc

Source from the content-addressed store, hash-verified

125};
126// check known valid client crc
127static int GetReferenceCRC(int offset, int size)
128{
129 for (const ExeCRCBlock* crc = ToCheck; crc->size > 0; crc++)
130 {
131 if (crc->offset == offset && crc->size == size)
132 {
133 return crc->crc;
134 }
135 }
136 return 0;
137}
138const ExeCRCBlock* GetCodeCheck()
139{
140 return ToCheck;

Callers 1

IntegrityCheckAnswerFunction · 0.85

Calls 1

CalculateExeCRCFunction · 0.85

Tested by

no test coverage detected