diff options
| author | Al <26797547+Al12rs@users.noreply.github.com> | 2020-01-22 23:09:45 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-01-22 23:09:45 +0100 |
| commit | eacbe101f180b48bb48bf36d84125ed8cfd4901a (patch) | |
| tree | 217440ae03e9a9e9cf53b15cd9309f972a7d34a2 /src/modinfowithconflictinfo.cpp | |
| parent | 84678a3a2866ebb9d32337948b3f634efa08b7e6 (diff) | |
| parent | 7c55ae3a2233c1031504cefeab059b7a83fc5bf9 (diff) | |
Merge pull request #979 from Al12rs/hidden-files-flag
Add Restore hidden files option and clean up hidden files code
Diffstat (limited to 'src/modinfowithconflictinfo.cpp')
| -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; } |
