MCPcopy Create free account
hub / github.com/dhewm/dhewm3 / IsFileModified

Method IsFileModified

neo/tools/debugger/DebuggerScript.cpp:155–177  ·  view source on GitHub ↗

================ rvDebuggerScript::IsFileModified Determines whether or not the file loaded for this script has been modified since it was loaded. ================ */

Source from the content-addressed store, hash-verified

153================
154*/
155bool rvDebuggerScript::IsFileModified ( bool updateTime )
156{
157 ID_TIME_T t;
158 bool result = false;
159
160 // Grab the filetime and shut the file down
161 fileSystem->ReadFile ( mFilename, NULL, &t );
162
163 // Has the file been modified?
164 if ( t > mModifiedTime )
165 {
166 result = true;
167 }
168
169 // If updateTime is true then we will update the modified time
170 // stored in the script with the files current modified time
171 if ( updateTime )
172 {
173 mModifiedTime = t;
174 }
175
176 return result;
177}

Callers 1

HandleActivateMethod · 0.45

Calls 1

ReadFileMethod · 0.80

Tested by

no test coverage detected