From 5d770d420416bee66f40c21746891581449363a6 Mon Sep 17 00:00:00 2001 From: Adam Potolsky Date: Mon, 1 Jun 2015 16:43:57 -0700 Subject: [PATCH] Added getInstallDir to Core Interface #4696 --- src/gui/src/CoreInterface.cpp | 6 ++++++ src/gui/src/CoreInterface.h | 1 + 2 files changed, 7 insertions(+) diff --git a/src/gui/src/CoreInterface.cpp b/src/gui/src/CoreInterface.cpp index 0dea0ad6..3f1b666b 100644 --- a/src/gui/src/CoreInterface.cpp +++ b/src/gui/src/CoreInterface.cpp @@ -39,6 +39,12 @@ QString CoreInterface::getProfileDir() return run(args); } +QString CoreInterface::getInstalledDir() +{ + QStringList args("--get-installed-dir"); + return run(args); +} + QString CoreInterface::getArch() { QStringList args("--get-arch"); diff --git a/src/gui/src/CoreInterface.h b/src/gui/src/CoreInterface.h index 2c6a01ab..55d954c1 100644 --- a/src/gui/src/CoreInterface.h +++ b/src/gui/src/CoreInterface.h @@ -26,6 +26,7 @@ public: QString getPluginDir(); QString getProfileDir(); + QString getInstalledDir(); QString getArch(); QString run(const QStringList& args, const QString& input = ""); };