| 1288 | } |
| 1289 | |
| 1290 | bool validatePath(const char* path, const char* sentinel) |
| 1291 | { |
| 1292 | if (!FileUtil::directoryExits(path)) { return false; } |
| 1293 | |
| 1294 | char sentinelPath[TFE_MAX_PATH]; |
| 1295 | sprintf(sentinelPath, "%s%s", path, sentinel); |
| 1296 | FileStream file; |
| 1297 | if (!file.open(sentinelPath, Stream::MODE_READ)) |
| 1298 | { |
| 1299 | return false; |
| 1300 | } |
| 1301 | bool valid = file.getSize() > 1; |
| 1302 | file.close(); |
| 1303 | |
| 1304 | return valid; |
| 1305 | } |
| 1306 | |
| 1307 | //////////////////////////////////////////////////////////////////////////// |
| 1308 | // Helper functions to determine valid HD assets. |
no test coverage detected