MCPcopy Create free account
hub / github.com/ddnet/ddnet / RetrieveTimes

Method RetrieveTimes

src/engine/shared/storage.cpp:631–637  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

629 }
630
631 bool RetrieveTimes(const char *pFilename, int Type, time_t *pCreated, time_t *pModified) override
632 {
633 dbg_assert(Type == TYPE_ABSOLUTE || (Type >= TYPE_SAVE && Type < m_NumPaths), "Type invalid");
634
635 char aBuffer[IO_MAX_PATH_LENGTH];
636 return fs_file_time(GetPath(Type, pFilename, aBuffer, sizeof(aBuffer)), pCreated, pModified) == 0;
637 }
638
639 bool CalculateHashes(const char *pFilename, int Type, SHA256_DIGEST *pSha256, unsigned *pCrc) override
640 {

Callers

nothing calls this directly

Calls 1

fs_file_timeFunction · 0.85

Tested by

no test coverage detected