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

Function CompareModifiedTimes

Engine/source/core/volume.cpp:1032–1044  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1030}
1031
1032S32 CompareModifiedTimes(const Path& p1, const Path& p2)
1033{
1034 FileNode::Attributes a1, a2;
1035 if (!Torque::FS::GetFileAttributes(p1, &a1))
1036 return -1;
1037 if (!Torque::FS::GetFileAttributes(p2, &a2))
1038 return -1;
1039 if (a1.mtime < a2.mtime)
1040 return -1;
1041 if (a1.mtime == a2.mtime)
1042 return 0;
1043 return 1;
1044}
1045
1046FileNodeRef GetFileNode(const Path &path)
1047{

Callers 2

_loadMethod · 0.85
compareModifiedTimesMethod · 0.85

Calls 1

GetFileAttributesFunction · 0.85

Tested by

no test coverage detected