MCPcopy Create free account
hub / github.com/TorqueGameEngines/Torque3D / getChecksum

Method getChecksum

Engine/source/core/volume.cpp:358–377  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

356}
357
358U32 FileNode::getChecksum()
359{
360 bool calculateCRC = (mLastChecksum == Torque::Time());
361
362 if ( !calculateCRC )
363 {
364 Torque::Time modTime = getModifiedTime();
365
366 calculateCRC = (modTime > mLastChecksum);
367 }
368
369 if ( calculateCRC )
370 mChecksum = calculateChecksum();
371
372 if ( mChecksum )
373 mLastChecksum = Time::getCurrentTime();
374
375 return mChecksum;
376
377}
378
379//-----------------------------------------------------------------------------
380

Callers 6

setFileMethod · 0.45
preloadMethod · 0.45
preloadMethod · 0.45
preloadMethod · 0.45
DefineEngineMethodFunction · 0.45

Calls 2

TimeClass · 0.85
getCurrentTimeFunction · 0.50

Tested by

no test coverage detected