MCPcopy Create free account
hub / github.com/NVIDIAGameWorks/Falcor / checkIfFilesChanged

Method checkIfFilesChanged

Source/Falcor/Core/Program/Program.cpp:269–289  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

267}
268
269bool Program::checkIfFilesChanged()
270{
271 if (mpActiveVersion == nullptr)
272 {
273 // We never linked, so nothing really changed
274 return false;
275 }
276
277 // Have any of the files we depend on changed?
278 for (auto& entry : mFileTimeMap)
279 {
280 auto& path = entry.first;
281 auto& modifiedTime = entry.second;
282
283 if (modifiedTime != getFileModifiedTime(path))
284 {
285 return true;
286 }
287 }
288 return false;
289}
290
291const ref<const ProgramVersion>& Program::getActiveVersion() const
292{

Callers 1

reloadAllProgramsMethod · 0.80

Calls 1

getFileModifiedTimeFunction · 0.50

Tested by

no test coverage detected