From 3cf3de700eeac08867d509e478449e46d7ff9f12 Mon Sep 17 00:00:00 2001 From: Jeremy Rimpo Date: Wed, 8 Nov 2017 19:30:20 -0600 Subject: Add MCM detection (but doesn't fix loading issues :() --- src/modinfo.cpp | 1 + src/modinfo.h | 3 ++- src/modinforegular.cpp | 2 ++ src/modlist.cpp | 3 ++- src/resources.qrc | 1 + 5 files changed, 8 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/modinfo.cpp b/src/modinfo.cpp index 7cb4b4ba..5d3c1e41 100644 --- a/src/modinfo.cpp +++ b/src/modinfo.cpp @@ -99,6 +99,7 @@ QString ModInfo::getContentTypeName(int contentType) case CONTENT_SCRIPT: return tr("Scripts"); case CONTENT_SKSE: return tr("SKSE Plugins"); case CONTENT_SKYPROC: return tr("SkyProc Tools"); + case CONTENT_MCM: return tr("MCM Data"); default: throw MyException(tr("invalid content type %1").arg(contentType)); } } diff --git a/src/modinfo.h b/src/modinfo.h index 501588ec..1485a4b3 100644 --- a/src/modinfo.h +++ b/src/modinfo.h @@ -79,7 +79,8 @@ public: CONTENT_SOUND, CONTENT_SCRIPT, CONTENT_SKSE, - CONTENT_SKYPROC + CONTENT_SKYPROC, + CONTENT_MCM }; static const int NUM_CONTENT_TYPES = CONTENT_SKYPROC + 1; diff --git a/src/modinforegular.cpp b/src/modinforegular.cpp index 1194f604..c296d792 100644 --- a/src/modinforegular.cpp +++ b/src/modinforegular.cpp @@ -458,6 +458,8 @@ std::vector ModInfoRegular::getContents() const m_CachedContent.push_back(CONTENT_SCRIPT); if (dir.exists("SkyProc Patchers")) m_CachedContent.push_back(CONTENT_SKYPROC); + if (dir.exists("MCM")) + m_CachedContent.push_back(CONTENT_MCM); m_LastContentCheck = QTime::currentTime(); } diff --git a/src/modlist.cpp b/src/modlist.cpp index 0aea7a98..ffbdee95 100644 --- a/src/modlist.cpp +++ b/src/modlist.cpp @@ -60,7 +60,7 @@ ModList::ModList(QObject *parent) , m_FontMetrics(QFont()) , m_DropOnItems(false) { - m_ContentIcons[ModInfo::CONTENT_PLUGIN] = std::make_tuple(":/MO/gui/content/plugin", tr("Game plugins (esp/esm/esl)")); + m_ContentIcons[ModInfo::CONTENT_PLUGIN] = std::make_tuple(":/MO/gui/content/plugin", tr("Game Plugins (ESP/ESM/ESL)")); m_ContentIcons[ModInfo::CONTENT_INTERFACE] = std::make_tuple(":/MO/gui/content/interface", tr("Interface")); m_ContentIcons[ModInfo::CONTENT_MESH] = std::make_tuple(":/MO/gui/content/mesh", tr("Meshes")); m_ContentIcons[ModInfo::CONTENT_BSA] = std::make_tuple(":/MO/gui/content/bsa", tr("BSA")); @@ -69,6 +69,7 @@ ModList::ModList(QObject *parent) m_ContentIcons[ModInfo::CONTENT_SKYPROC] = std::make_tuple(":/MO/gui/content/skyproc", tr("SkyProc Patcher")); m_ContentIcons[ModInfo::CONTENT_SOUND] = std::make_tuple(":/MO/gui/content/sound", tr("Sound or Music")); m_ContentIcons[ModInfo::CONTENT_TEXTURE] = std::make_tuple(":/MO/gui/content/texture", tr("Textures")); + m_ContentIcons[ModInfo::CONTENT_MCM] = std::make_tuple(":/MO/gui/content/menu", tr("MCM Configuration")); m_LastCheck.start(); } diff --git a/src/resources.qrc b/src/resources.qrc index d357801c..e88eda06 100644 --- a/src/resources.qrc +++ b/src/resources.qrc @@ -82,6 +82,7 @@ resources/contents/breastplate.png resources/contents/conversation.png resources/contents/locked-chest.png + resources/contents/config.png qt.conf -- cgit v1.3.1