---------------------------------------------------------------------
| 527 | } |
| 528 | //--------------------------------------------------------------------- |
| 529 | time_t FileSystemArchive::getModifiedTime(const String& filename) const |
| 530 | { |
| 531 | String full_path = concatenate_path(mName, filename); |
| 532 | |
| 533 | #ifdef _OGRE_FILESYSTEM_ARCHIVE_UNICODE |
| 534 | struct _stat64i32 tagStat; |
| 535 | bool ret = (_wstat(to_wpath(full_path).c_str(), &tagStat) == 0); |
| 536 | #else |
| 537 | struct stat tagStat; |
| 538 | bool ret = (stat(full_path.c_str(), &tagStat) == 0); |
| 539 | #endif |
| 540 | |
| 541 | if (ret) |
| 542 | { |
| 543 | return tagStat.st_mtime; |
| 544 | } |
| 545 | else |
| 546 | { |
| 547 | return 0; |
| 548 | } |
| 549 | |
| 550 | } |
| 551 | //----------------------------------------------------------------------- |
| 552 | const String& FileSystemArchiveFactory::getType(void) const |
| 553 | { |
nothing calls this directly
no test coverage detected