From cabffa23a9b1ec053a7a573ed71883c44d7a5b6a Mon Sep 17 00:00:00 2001 From: LePresidente Date: Sun, 29 Oct 2017 11:38:06 +0200 Subject: Use ScriptExtender PluginPath instead of appending "/plugin" to the old script extender name variable. --- src/loadmechanism.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/loadmechanism.cpp') 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("."); -- cgit v1.3.1