From 3e98a6e5bf8bb38a6766d955d3cb746fc886c8ab Mon Sep 17 00:00:00 2001 From: Al <26797547+Al12rs@users.noreply.github.com> Date: Mon, 20 Jan 2020 19:38:08 +0100 Subject: Use ModInfo::s_HideExt instead of ".mohidden" directly --- src/modinfowithconflictinfo.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/modinfowithconflictinfo.cpp') 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; } -- cgit v1.3.1