diff options
| author | Al <26797547+Al12rs@users.noreply.github.com> | 2020-01-20 19:38:08 +0100 |
|---|---|---|
| committer | Al <26797547+Al12rs@users.noreply.github.com> | 2020-01-20 19:38:08 +0100 |
| commit | 3e98a6e5bf8bb38a6766d955d3cb746fc886c8ab (patch) | |
| tree | 3fd776d0241e8eda002d174a2fc6b0496818f1f8 | |
| parent | 84678a3a2866ebb9d32337948b3f634efa08b7e6 (diff) | |
Use ModInfo::s_HideExt instead of ".mohidden" directly
| -rw-r--r-- | src/modinfowithconflictinfo.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/modinfowithconflictinfo.cpp b/src/modinfowithconflictinfo.cpp index b068ad4a..861782d9 100644 --- a/src/modinfowithconflictinfo.cpp +++ b/src/modinfowithconflictinfo.cpp @@ -90,6 +90,7 @@ void ModInfoWithConflictInfo::doConflictCheck() const } std::wstring name = ToWString(this->name()); + const std::wstring hideExt = ToWString(ModInfo::s_HiddenExt); m_CurrentConflictState = CONFLICT_NONE; m_ArchiveConflictState = CONFLICT_NONE; @@ -107,7 +108,7 @@ void ModInfoWithConflictInfo::doConflictCheck() const if (!hasHiddenFiles) { const fs::path nameAsPath(file->getName()); - if (nameAsPath.extension().wstring().compare(L".mohidden") == 0) { + if (nameAsPath.extension().wstring().compare(hideExt) == 0) { hasHiddenFiles = true; } else { @@ -123,7 +124,7 @@ void ModInfoWithConflictInfo::doConflictCheck() const } else { const fs::path dirPath(parent->getName()); - if (dirPath.extension().wstring().compare(L".mohidden") == 0) { + if (dirPath.extension().wstring().compare(hideExt) == 0) { hasHiddenFiles = true; break; } |
