MCPcopy Create free account
hub / github.com/FreesmTeam/FreesmLauncher / updateTimestamp

Function updateTimestamp

launcher/FileSystem.cpp:255–264  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

253}
254
255bool updateTimestamp(const QString& filename)
256{
257#ifdef Q_OS_WIN32
258 std::wstring filename_utf_16 = filename.toStdWString();
259 return (_wutime64(filename_utf_16.c_str(), nullptr) == 0);
260#else
261 QByteArray filenameBA = QFile::encodeName(filename);
262 return (utime(filenameBA.data(), nullptr) == 0);
263#endif
264}
265
266bool ensureFilePathExists(QString filenamepath)
267{

Callers 3

ApplicationMethod · 0.85
PrismUpdaterAppMethod · 0.85
installResourceMethod · 0.85

Calls 1

dataMethod · 0.45

Tested by

no test coverage detected