summaryrefslogtreecommitdiffhomepage
path: root/opentrack/plugin-support.hpp
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2016-07-08 10:06:49 +0200
committerStanislaw Halik <sthalik@misaki.pl>2016-07-08 10:27:30 +0200
commite4cb9703cc6810dbe07070b485ea866f00ba9252 (patch)
treeaa78e77c2ce4520513300d1c06cdb53c5c0cacd7 /opentrack/plugin-support.hpp
parent81b49dabaf168b907252affd5412de7744a409de (diff)
gui, api, proto/wine: get rid of library path as exported symbol
There's no need to do that. It never changes unless the toolchain changes.
Diffstat (limited to 'opentrack/plugin-support.hpp')
-rw-r--r--opentrack/plugin-support.hpp9
1 files changed, 3 insertions, 6 deletions
diff --git a/opentrack/plugin-support.hpp b/opentrack/plugin-support.hpp
index a55526a9..a26d7f08 100644
--- a/opentrack/plugin-support.hpp
+++ b/opentrack/plugin-support.hpp
@@ -62,8 +62,7 @@ struct dylib final {
if (filename.size() == 0)
return;
- QString fullPath = QCoreApplication::applicationDirPath() + "/" + filename;
- handle = new QLibrary(fullPath);
+ handle = new QLibrary(filename);
handle->setLoadHints(QLibrary::PreventUnloadHint | handle->loadHints());
struct _foo {
@@ -113,9 +112,7 @@ struct dylib final {
};
const Type filters_t[] = { Filter, Tracker, Protocol };
- static const QString libexec_path(QStringLiteral("./") + library_path);
-
- QDir settingsDir(libexec_path);
+ QDir settingsDir(library_path);
QList<mem<dylib>> ret;
@@ -129,7 +126,7 @@ struct dylib final {
{
QIcon icon;
QString longName;
- auto lib = std::make_shared<dylib>(libexec_path + QStringLiteral("/") + filename, t);
+ auto lib = std::make_shared<dylib>(library_path + filename, t);
qDebug() << "Loading" << filename;
std::cout.flush();
if (!get_metadata(lib, longName, icon))