MCPcopy Create free account
hub / github.com/MultiMC/Launcher / updateTimestamp

Function updateTimestamp

launcher/FileSystem.cpp:79–88  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

77}
78
79bool updateTimestamp(const QString& filename)
80{
81#ifdef Q_OS_WIN32
82 std::wstring filename_utf_16 = filename.toStdWString();
83 return (_wutime64(filename_utf_16.c_str(), nullptr) == 0);
84#else
85 QByteArray filenameBA = QFile::encodeName(filename);
86 return (utime(filenameBA.data(), nullptr) == 0);
87#endif
88}
89
90bool ensureFilePathExists(QString filenamepath)
91{

Callers 2

ApplicationMethod · 0.85
installModMethod · 0.85

Calls 1

dataMethod · 0.45

Tested by

no test coverage detected