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

Method getChecksum

Engine/source/core/resource.cpp:34–45  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

32
33
34U32 ResourceBase::Header::getChecksum() const
35{
36 Torque::FS::FileNodeRef fileRef = Torque::FS::GetFileNode( mPath );
37
38 if ( fileRef == NULL )
39 {
40 Con::errorf("ResourceBase::getChecksum could not access file: [%s]", mPath.getFullPath().c_str() );
41 return 0;
42 }
43
44 return fileRef->getChecksum();
45}
46
47void ResourceBase::Header::destroySelf()
48{

Callers

nothing calls this directly

Calls 3

GetFileNodeFunction · 0.85
errorfFunction · 0.50
c_strMethod · 0.45

Tested by

no test coverage detected