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

Method startNotifier

Engine/source/core/volume.cpp:150–175  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

148}
149
150void FileSystemChangeNotifier::startNotifier()
151{
152 // update the timestamps of all the files we are managing
153
154 DirMap::Iterator itr = mDirMap.begin();
155
156 for ( ; itr != mDirMap.end(); ++itr )
157 {
158 FileInfoList &fileList = itr->value;
159
160 for ( U32 i = 0; i < fileList.getSize(); i++ )
161 {
162 FileInfo &fInfo = fileList[i];
163
164 // This may fail if the file doesn't exist... thats ok.
165 FileNode::Attributes attr;
166 GetFileAttributes(fInfo.filePath, &attr);
167
168 fInfo.savedLastModTime = attr.mtime;
169 }
170 }
171
172 mNotifying = true;
173
174 Process::notify( this, &FileSystemChangeNotifier::process, PROCESS_LAST_ORDER );
175}
176
177void FileSystemChangeNotifier::process()
178{

Callers 1

Calls 4

GetFileAttributesFunction · 0.85
beginMethod · 0.45
endMethod · 0.45
getSizeMethod · 0.45

Tested by

no test coverage detected