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

Method getModifiedTime

OgreMain/src/OgreFileSystem.cpp:529–550  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

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 {

Callers

nothing calls this directly

Calls 3

concatenate_pathFunction · 0.85
to_wpathFunction · 0.85
statClass · 0.70

Tested by

no test coverage detected