---------------------------------------------------------------------
| 499 | } |
| 500 | //--------------------------------------------------------------------- |
| 501 | time_t FileSystemArchive::getModifiedTime( const String &filename ) |
| 502 | { |
| 503 | String full_path = concatenate_path( mName, filename ); |
| 504 | |
| 505 | #ifdef _OGRE_FILESYSTEM_ARCHIVE_UNICODE |
| 506 | struct _stat64i32 tagStat; |
| 507 | bool ret = ( _wstat( to_wpath( full_path ).c_str(), &tagStat ) == 0 ); |
| 508 | #else |
| 509 | struct stat tagStat; |
| 510 | bool ret = ( stat( full_path.c_str(), &tagStat ) == 0 ); |
| 511 | #endif |
| 512 | |
| 513 | if( ret ) |
| 514 | { |
| 515 | return tagStat.st_mtime; |
| 516 | } |
| 517 | else |
| 518 | { |
| 519 | return 0; |
| 520 | } |
| 521 | } |
| 522 | //----------------------------------------------------------------------- |
| 523 | const String &FileSystemArchiveFactory::getType() const |
| 524 | { |
nothing calls this directly
no test coverage detected