aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIrgendwer01 <67506320+Irgendwer01@users.noreply.github.com>2022-04-15 01:40:25 +0200
committerGitHub <noreply@github.com>2022-04-15 01:40:25 +0200
commitabb20c65e33a756288c14f746cbd6cc12b1f14d1 (patch)
tree2d1ae7664ba733391ad494072fe53192bf5a734d
parent620555d2103dbfaa51e621b35290392899713a40 (diff)
downloadPrismLauncher-abb20c65e33a756288c14f746cbd6cc12b1f14d1.tar.gz
PrismLauncher-abb20c65e33a756288c14f746cbd6cc12b1f14d1.tar.bz2
PrismLauncher-abb20c65e33a756288c14f746cbd6cc12b1f14d1.zip
better FreeBSD support
-rw-r--r--launcher/minecraft/MinecraftInstance.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/launcher/minecraft/MinecraftInstance.cpp b/launcher/minecraft/MinecraftInstance.cpp
index 3ba79178..e40d2534 100644
--- a/launcher/minecraft/MinecraftInstance.cpp
+++ b/launcher/minecraft/MinecraftInstance.cpp
@@ -213,8 +213,12 @@ QString MinecraftInstance::binRoot() const
QString MinecraftInstance::getNativePath() const
{
+#if defined(Q_OS_FREEBSD)
+ QDir natives_dir("/usr/local/lib/lwjgl/");
+#else
QDir natives_dir(FS::PathCombine(instanceRoot(), "natives/"));
return natives_dir.absolutePath();
+#endif
}
QString MinecraftInstance::getLocalLibraryPath() const