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

Method compareFiles

Engine/source/console/persistenceManager.cpp:1770–1784  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

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