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

Function pathsReferToSameFile

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

Source from the content-addressed store, hash-verified

69}
70
71static bool pathsReferToSameFile(const QString& lhs, const QString& rhs)
72{
73 const QString left = normalizePathForCompare(lhs);
74 const QString right = normalizePathForCompare(rhs);
75 if (left.isEmpty() || right.isEmpty())
76 return false;
77
78#ifdef _WIN32
79 return left.compare(right, Qt::CaseInsensitive) == 0;
80#else
81 return left == right;
82#endif
83}
84
85static QString encodeFamilyForUrl(const QString& family)
86{

Callers 1

onDialogAcceptedMethod · 0.85

Calls 3

normalizePathForCompareFunction · 0.85
isEmptyMethod · 0.45
compareMethod · 0.45

Tested by

no test coverage detected