================ rvDebuggerScript::IsFileModified Determines whether or not the file loaded for this script has been modified since it was loaded. ================ */
| 153 | ================ |
| 154 | */ |
| 155 | bool 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 | } |
no test coverage detected