diff options
| author | LePresidente <brian.alexander.munro@gmail.com> | 2017-10-29 11:38:06 +0200 |
|---|---|---|
| committer | LePresidente <brian.alexander.munro@gmail.com> | 2017-10-29 11:38:06 +0200 |
| commit | cabffa23a9b1ec053a7a573ed71883c44d7a5b6a (patch) | |
| tree | cd4efd870b0ec76b027a8c104feb6cd724cf83c4 | |
| parent | ebe6011174767687f3b575c08132a720ecccbf55 (diff) | |
Use ScriptExtender PluginPath instead of appending "/plugin" to the old script extender name variable.
| -rw-r--r-- | src/loadmechanism.cpp | 4 | ||||
| -rw-r--r-- | src/modinforegular.cpp | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/src/loadmechanism.cpp b/src/loadmechanism.cpp index e476c56d..35aedfed 100644 --- a/src/loadmechanism.cpp +++ b/src/loadmechanism.cpp @@ -129,7 +129,7 @@ void LoadMechanism::deactivateScriptExtender() throw MyException(QObject::tr("game doesn't support a script extender"));
}
- QDir pluginsDir(game->gameDirectory().absolutePath() + "/data/" + extender->name() + "/plugins");
+ QDir pluginsDir(game->gameDirectory().absolutePath() + "/data/" + extender->PluginPath());
#pragma message("implement this for usvfs")
@@ -188,7 +188,7 @@ void LoadMechanism::activateScriptExtender() throw MyException(QObject::tr("game doesn't support a script extender"));
}
- QDir pluginsDir(game->gameDirectory().absolutePath() + "/data/" + extender->name() + "/plugins");
+ QDir pluginsDir(game->gameDirectory().absolutePath() + "/data/" + extender->PluginPath());
if (!pluginsDir.exists()) {
pluginsDir.mkpath(".");
diff --git a/src/modinforegular.cpp b/src/modinforegular.cpp index bacc21f7..1194f604 100644 --- a/src/modinforegular.cpp +++ b/src/modinforegular.cpp @@ -442,7 +442,7 @@ std::vector<ModInfo::EContent> ModInfoRegular::getContents() const ->feature<ScriptExtender>(); if (extender != nullptr) { - QString sePluginPath = extender->name() + "/plugins"; + QString sePluginPath = extender->PluginPath(); if (dir.exists(sePluginPath)) m_CachedContent.push_back(CONTENT_SKSE); } |
