MCPcopy Create free account
hub / github.com/OGRECave/ogre-next / getModifiedTime

Method getModifiedTime

OgreMain/src/OgreFileSystem.cpp:501–521  ·  view source on GitHub ↗

---------------------------------------------------------------------

Source from the content-addressed store, hash-verified

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 {

Callers

nothing calls this directly

Calls 4

concatenate_pathFunction · 0.85
to_wpathFunction · 0.85
statClass · 0.70
c_strMethod · 0.45

Tested by

no test coverage detected