diff options
| author | isanae <14251494+isanae@users.noreply.github.com> | 2020-12-24 23:06:53 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-12-24 23:06:53 -0500 |
| commit | 89bbdf22cde8d16d2d5e72999abf97b38ecd7b11 (patch) | |
| tree | 3f4c4de743acdbb90e7e9997147f478c0c1f698e /src/envmodule.cpp | |
| parent | 06ca11edfb2957d07f9e7bccce1e8a765b1d0209 (diff) | |
| parent | 9441d49c6d7dff23395460076112b57d4c0e8743 (diff) | |
Merge pull request #1328 from isanae/stuff
Stuff
Diffstat (limited to 'src/envmodule.cpp')
| -rw-r--r-- | src/envmodule.cpp | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/src/envmodule.cpp b/src/envmodule.cpp index 5f2a5f5a..81cbad8a 100644 --- a/src/envmodule.cpp +++ b/src/envmodule.cpp @@ -308,6 +308,29 @@ QDateTime Module::getTimestamp(const VS_FIXEDFILEINFO& fi) const QTime(utc.wHour, utc.wMinute, utc.wSecond, utc.wMilliseconds)); } +bool Module::interesting() const +{ + static const auto windir = []() -> QString { + try + { + return QDir::toNativeSeparators( + MOBase::getKnownFolder(FOLDERID_Windows).path()) + "\\"; + } + catch(...) + { + return "c:\\windows\\"; + } + }(); + + + if (m_path.startsWith(windir, Qt::CaseInsensitive)) { + return false; + } + + return true; +} + + QString Module::getMD5() const { static const std::set<QString> ignore = { |
