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

Method compareFiles

Engine/source/console/persistenceManager.cpp:1764–1778  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1762}
1763
1764S32 QSORT_CALLBACK PersistenceManager::compareFiles(const void* a,const void* b)
1765{
1766 DirtyObject* objectA = (DirtyObject*)(a);
1767 DirtyObject* objectB = (DirtyObject*)(b);
1768
1769 if (objectA->isNull())
1770 return -1;
1771 else if (objectB->isNull())
1772 return 1;
1773
1774 if (objectA->fileName == objectB->fileName)
1775 return objectA->getObject()->getDeclarationLine() - objectB->getObject()->getDeclarationLine();
1776
1777 return dStricmp(objectA->fileName, objectB->fileName);
1778}
1779
1780bool PersistenceManager::setDirty(SimObject* inObject, const char* inFileName)
1781{

Callers

nothing calls this directly

Calls 4

dStricmpFunction · 0.85
getDeclarationLineMethod · 0.80
isNullMethod · 0.45
getObjectMethod · 0.45

Tested by

no test coverage detected