summaryrefslogtreecommitdiff
path: root/src/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/main.cpp')
-rw-r--r--src/main.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/main.cpp b/src/main.cpp
index 7b489aee..7005d374 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -32,10 +32,10 @@ along with Mod Organizer. If not, see <http://www.gnu.org/licenses/>.
#include "env.h"
#include "envmodule.h"
#include "commandline.h"
-
#include "shared/util.h"
#include "shared/appconfig.h"
+#include <imoinfo.h>
#include <report.h>
#include <usvfs.h>
#include <log.h>
@@ -730,6 +730,10 @@ int main(int argc, char *argv[])
InstanceManager::instance().overrideProfile(*cl.profile());
}
+ // makes plugin data path available to plugins, see
+ // IOrganizer::getPluginDataPath()
+ MOBase::details::setPluginDataPath(OrganizerCore::pluginDataPath());
+
for (;;)
{
const auto r = doOneRun(cl, application, instance);