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

Function CompareModifiedTimes

Engine/source/core/volume.cpp:1191–1203  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1189}
1190
1191S32 CompareModifiedTimes(const Path& p1, const Path& p2)
1192{
1193 FileNode::Attributes a1, a2;
1194 if (!Torque::FS::GetFileAttributes(p1, &a1))
1195 return -1;
1196 if (!Torque::FS::GetFileAttributes(p2, &a2))
1197 return -1;
1198 if (a1.mtime < a2.mtime)
1199 return -1;
1200 if (a1.mtime == a2.mtime)
1201 return 0;
1202 return 1;
1203}
1204
1205FileNodeRef GetFileNode(const Path &path)
1206{

Callers 1

compareModifiedTimesMethod · 0.85

Calls 1

GetFileAttributesFunction · 0.85

Tested by

no test coverage detected