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

Function updateTimestamp

launcher/FileSystem.cpp:242–251  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

240}
241
242bool updateTimestamp(const QString& filename)
243{
244#ifdef Q_OS_WIN32
245 std::wstring filename_utf_16 = filename.toStdWString();
246 return (_wutime64(filename_utf_16.c_str(), nullptr) == 0);
247#else
248 QByteArray filenameBA = QFile::encodeName(filename);
249 return (utime(filenameBA.data(), nullptr) == 0);
250#endif
251}
252
253bool ensureFilePathExists(QString filenamepath)
254{

Callers 3

ApplicationMethod · 0.85
PrismUpdaterAppMethod · 0.85
installResourceMethod · 0.85

Calls 1

dataMethod · 0.45

Tested by

no test coverage detected