diff options
| author | Al12rs <gabriel.cortesi@outlook.com> | 2018-08-25 14:30:27 +0200 |
|---|---|---|
| committer | Al12rs <gabriel.cortesi@outlook.com> | 2018-08-25 14:30:27 +0200 |
| commit | c4636d891f94f3af6664a82d1f6757a386431fde (patch) | |
| tree | 99d48370eeb93e24e1632444af68c139fd9f2f33 /src/modinforegular.cpp | |
| parent | 8ea8444dc89546ee731060e66a9b33d3721bbf6d (diff) | |
Added ModGroups contents icon and flag.
Diffstat (limited to 'src/modinforegular.cpp')
| -rw-r--r-- | src/modinforegular.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/modinforegular.cpp b/src/modinforegular.cpp index 5b6ddcda..f74b3a36 100644 --- a/src/modinforegular.cpp +++ b/src/modinforegular.cpp @@ -471,6 +471,10 @@ std::vector<ModInfo::EContent> ModInfoRegular::getContents() const m_CachedContent.push_back(CONTENT_INI); } + if (dir.entryList(QStringList() << "*.modgroups").size() > 0) { + m_CachedContent.push_back(CONTENT_MODGROUP); + } + ScriptExtender *extender = qApp->property("managed_game") .value<IPluginGame *>() ->feature<ScriptExtender>(); |
