diff options
| author | Mikaël Capelle <capelle.mikael@gmail.com> | 2020-05-25 19:53:21 +0200 |
|---|---|---|
| committer | Mikaël Capelle <capelle.mikael@gmail.com> | 2020-05-25 19:54:15 +0200 |
| commit | cf1bbdd13e0db8856df672c367d3ec1610f6c556 (patch) | |
| tree | 461a6b7623a186502f00b07df689ffebfea620b0 /src/modinfo.cpp | |
| parent | a721347fd130fcab19f2709892093f087bfac19e (diff) | |
Switch to using the ModDataContent feature from the game plugin.
Diffstat (limited to 'src/modinfo.cpp')
| -rw-r--r-- | src/modinfo.cpp | 27 |
1 files changed, 0 insertions, 27 deletions
diff --git a/src/modinfo.cpp b/src/modinfo.cpp index 15fa71da..a8e6a55b 100644 --- a/src/modinfo.cpp +++ b/src/modinfo.cpp @@ -108,27 +108,6 @@ ModInfo::Ptr ModInfo::createFromPlugin(const QString &modName, return result; } -QString ModInfo::getContentTypeName(int contentType) -{ - switch (contentType) { - case CONTENT_PLUGIN: return tr("Plugins"); - case CONTENT_TEXTURE: return tr("Textures"); - case CONTENT_MESH: return tr("Meshes"); - case CONTENT_BSA: return tr("Bethesda Archive"); - case CONTENT_INTERFACE: return tr("UI Changes"); - case CONTENT_SOUND: return tr("Sound Effects"); - case CONTENT_SCRIPT: return tr("Scripts"); - case CONTENT_SKSE: return tr("Script Extender"); - case CONTENT_SKSEFILES: return tr("Script Extender Files"); - case CONTENT_SKYPROC: return tr("SkyProc Tools"); - case CONTENT_MCM: return tr("MCM Data"); - case CONTENT_INI: return tr("INI files"); - case CONTENT_MODGROUP: return tr("ModGroup files"); - - default: throw MyException(tr("invalid content type: %1").arg(contentType)); - } -} - void ModInfo::createFromOverwrite(PluginContainer *pluginContainer, const MOBase::IPluginGame* game, MOShared::DirectoryEntry **directoryStructure) @@ -515,12 +494,6 @@ bool ModInfo::hasAnyOfTheseFlags(std::vector<ModInfo::EFlag> flags) const return false; } -bool ModInfo::hasContent(ModInfo::EContent content) const -{ - std::vector<EContent> contents = getContents(); - return std::find(contents.begin(), contents.end(), content) != contents.end(); -} - bool ModInfo::categorySet(int categoryID) const { for (std::set<int>::const_iterator iter = m_Categories.begin(); iter != m_Categories.end(); ++iter) { |
