MCPcopy Create free account
hub / github.com/PCSX2/pcsx2 / ToTime

Method ToTime

pcsx2/SIO/Memcard/MemoryCardFolder.cpp:87–102  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

85}
86
87time_t MemoryCardFileEntryDateTime::ToTime() const
88{
89 struct tm converted = {};
90 converted.tm_sec = second;
91 converted.tm_min = minute;
92 converted.tm_hour = hour;
93 converted.tm_mday = day;
94 converted.tm_mon = std::max(static_cast<int>(month) - 1, 0);
95 converted.tm_year = std::max(static_cast<int>(year) - 1900, 0);
96
97#ifdef _MSC_VER
98 return _mkgmtime(&converted);
99#else
100 return timegm(&converted);
101#endif
102}
103
104FolderMemoryCard::FolderMemoryCard()
105 : m_framesUntilFlush(0)

Callers 2

FlushFileEntriesMethod · 0.80
WriteIndexMethod · 0.80

Calls 1

maxFunction · 0.50

Tested by

no test coverage detected