aboutsummaryrefslogtreecommitdiff
path: root/launcher
diff options
context:
space:
mode:
authorTechnous285 <Technous285@users.noreply.github.com>2022-06-02 02:02:42 +1000
committerGitHub <noreply@github.com>2022-06-02 02:02:42 +1000
commit38ff76d2b89c156d6b3cd6f45e76670304820516 (patch)
tree9c2eddee7439d2f02c28b0b3a2d335817ba5088e /launcher
parent147bde5294626d7ba1a6cd672200f7da878eddd9 (diff)
downloadPrismLauncher-38ff76d2b89c156d6b3cd6f45e76670304820516.tar.gz
PrismLauncher-38ff76d2b89c156d6b3cd6f45e76670304820516.tar.bz2
PrismLauncher-38ff76d2b89c156d6b3cd6f45e76670304820516.zip
Add OpenBSD support
Adds OpenBSD support.
Diffstat (limited to 'launcher')
-rw-r--r--launcher/UpdateController.cpp2
-rw-r--r--launcher/tools/MCEditTool.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/launcher/UpdateController.cpp b/launcher/UpdateController.cpp
index c27fe772..646f8e57 100644
--- a/launcher/UpdateController.cpp
+++ b/launcher/UpdateController.cpp
@@ -93,7 +93,7 @@ void UpdateController::installUpdates()
qDebug() << "Installing updates.";
#ifdef Q_OS_WIN
QString finishCmd = QApplication::applicationFilePath();
-#elif defined(Q_OS_LINUX) || defined(Q_OS_FREEBSD)
+#elif defined(Q_OS_LINUX) || defined(Q_OS_FREEBSD) || defined (Q_OS_OPENBSD)
QString finishCmd = FS::PathCombine(m_root, BuildConfig.LAUNCHER_NAME);
#elif defined Q_OS_MAC
QString finishCmd = QApplication::applicationFilePath();
diff --git a/launcher/tools/MCEditTool.cpp b/launcher/tools/MCEditTool.cpp
index 21e1a3b0..2c1ec613 100644
--- a/launcher/tools/MCEditTool.cpp
+++ b/launcher/tools/MCEditTool.cpp
@@ -52,7 +52,7 @@ QString MCEditTool::getProgramPath()
#else
const QString mceditPath = path();
QDir mceditDir(mceditPath);
-#if defined(Q_OS_LINUX) || defined(Q_OS_FREEBSD)
+#if defined(Q_OS_LINUX) || defined(Q_OS_FREEBSD) || defined(Q_OS_OPENBSD)
if (mceditDir.exists("mcedit.sh"))
{
return mceditDir.absoluteFilePath("mcedit.sh");