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

Function normalizePathForCompare

pcsx2-qt/Settings/OsdFontPickerDialog.cpp:58–69  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

56}
57
58static QString normalizePathForCompare(const QString& path)
59{
60 if (path.isEmpty())
61 return QString();
62
63 const QFileInfo fi(path);
64 const QString canonical = fi.canonicalFilePath();
65 if (!canonical.isEmpty())
66 return QDir::cleanPath(canonical);
67
68 return QDir::cleanPath(fi.absoluteFilePath());
69}
70
71static bool pathsReferToSameFile(const QString& lhs, const QString& rhs)
72{

Callers 1

pathsReferToSameFileFunction · 0.85

Calls 1

isEmptyMethod · 0.45

Tested by

no test coverage detected