diff options
| author | isanae <14251494+isanae@users.noreply.github.com> | 2020-12-24 11:22:24 -0500 |
|---|---|---|
| committer | isanae <14251494+isanae@users.noreply.github.com> | 2020-12-24 11:22:24 -0500 |
| commit | 1b700785bb8b5a3891391f60b13c9fee4647b5dd (patch) | |
| tree | e9e9151684f2012ebf32ea6ffc5362586e61fbda /src/envmodule.cpp | |
| parent | da0771853a27eb9e61d32c4326bd8f6af990b7b5 (diff) | |
don't log modules in winroot
dashes to dots
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 = { |
