aboutsummaryrefslogtreecommitdiff
path: root/launcher
diff options
context:
space:
mode:
authorSefa Eyeoglu <contact@scrumplex.net>2022-03-13 11:44:30 +0100
committerSefa Eyeoglu <contact@scrumplex.net>2022-03-13 12:48:24 +0100
commitbb2b344d3300cfc2f13211cd12956e23c98459de (patch)
treeb1f03ec51e5172b39a1ae6289278b4502f915231 /launcher
parentb96572774fd13fea7bc0ec0110bf0bde1e898ffe (diff)
downloadPrismLauncher-bb2b344d3300cfc2f13211cd12956e23c98459de.tar.gz
PrismLauncher-bb2b344d3300cfc2f13211cd12956e23c98459de.tar.bz2
PrismLauncher-bb2b344d3300cfc2f13211cd12956e23c98459de.zip
fix: define jars path relative to application root
Fixes #117
Diffstat (limited to 'launcher')
-rw-r--r--launcher/Application.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/launcher/Application.cpp b/launcher/Application.cpp
index 0ce80d4b..c699d840 100644
--- a/launcher/Application.cpp
+++ b/launcher/Application.cpp
@@ -515,8 +515,8 @@ Application::Application(int &argc, char **argv) : QApplication(argc, argv)
FS::updateTimestamp(m_rootPath);
#endif
-#ifdef MULTIMC_JARS_LOCATION
- m_jarsPath = TOSTRING(MULTIMC_JARS_LOCATION);
+#ifdef LAUNCHER_JARS_LOCATION
+ m_jarsPath = TOSTRING(LAUNCHER_JARS_LOCATION);
#endif
qDebug() << BuildConfig.LAUNCHER_DISPLAYNAME << ", (c) 2013-2021 " << BuildConfig.LAUNCHER_COPYRIGHT;
@@ -1494,7 +1494,7 @@ QString Application::getJarsPath()
{
return FS::PathCombine(QCoreApplication::applicationDirPath(), "jars");
}
- return m_jarsPath;
+ return FS::PathCombine(m_rootPath, m_jarsPath);
}
QString Application::getMSAClientID()