summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorSilarn <jrim@rimpo.org>2018-04-06 00:56:58 -0500
committerSilarn <jrim@rimpo.org>2018-04-06 00:56:58 -0500
commitfed89352d1c9870bb34cbc1a65c3a8d3043086f9 (patch)
tree2da96991f563c37db3ac0e9b2220f1b7f84c81a9 /src
parent74dd2bb914a1f2a31506c3544b6ee198f65e2b6b (diff)
Changes to allow plugin loading in the mod info dialog (and rename SE)
Diffstat (limited to 'src')
-rw-r--r--src/modinfo.cpp6
-rw-r--r--src/modinfo.h1
-rw-r--r--src/modinfodialog.h1
-rw-r--r--src/modinforegular.cpp2
4 files changed, 6 insertions, 4 deletions
diff --git a/src/modinfo.cpp b/src/modinfo.cpp
index c14eedb7..d80c636b 100644
--- a/src/modinfo.cpp
+++ b/src/modinfo.cpp
@@ -55,7 +55,7 @@ QMutex ModInfo::s_Mutex(QMutex::Recursive);
QString ModInfo::s_HiddenExt(".mohidden");
-static bool ByName(const ModInfo::Ptr &LHS, const ModInfo::Ptr &RHS)
+bool ModInfo::ByName(const ModInfo::Ptr &LHS, const ModInfo::Ptr &RHS)
{
return QString::compare(LHS->name(), RHS->name(), Qt::CaseInsensitive) < 0;
}
@@ -98,7 +98,7 @@ QString ModInfo::getContentTypeName(int contentType)
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("SKSE Plugins");
+ case CONTENT_SKSE: return tr("Script Extender");
case CONTENT_SKYPROC: return tr("SkyProc Tools");
case CONTENT_MCM: return tr("MCM Data");
default: throw MyException(tr("invalid content type %1").arg(contentType));
@@ -239,7 +239,7 @@ void ModInfo::updateFromDisc(const QString &modDirectory,
createFromOverwrite();
- std::sort(s_Collection.begin(), s_Collection.end(), ByName);
+ std::sort(s_Collection.begin(), s_Collection.end(), ModInfo::ByName);
updateIndices();
}
diff --git a/src/modinfo.h b/src/modinfo.h
index d00c04e7..1ceb8e1f 100644
--- a/src/modinfo.h
+++ b/src/modinfo.h
@@ -599,6 +599,7 @@ protected:
ModInfo();
static void updateIndices();
+ static bool ByName(const ModInfo::Ptr &LHS, const ModInfo::Ptr &RHS);
private:
diff --git a/src/modinfodialog.h b/src/modinfodialog.h
index 312ff99e..e7c70762 100644
--- a/src/modinfodialog.h
+++ b/src/modinfodialog.h
@@ -23,6 +23,7 @@ along with Mod Organizer. If not, see <http://www.gnu.org/licenses/>.
#include "modinfo.h"
#include "tutorabledialog.h"
+#include "plugincontainer.h"
#include <QDialog>
#include <QSignalMapper>
diff --git a/src/modinforegular.cpp b/src/modinforegular.cpp
index 5486bb2c..4572f5bf 100644
--- a/src/modinforegular.cpp
+++ b/src/modinforegular.cpp
@@ -299,7 +299,7 @@ bool ModInfoRegular::setName(const QString &name)
s_ModsByName[m_Name] = index;
- std::sort(s_Collection.begin(), s_Collection.end(), ByName);
+ std::sort(s_Collection.begin(), s_Collection.end(), ModInfo::ByName);
updateIndices();
} else { // otherwise mod isn't registered yet?
m_Name = name;