summaryrefslogtreecommitdiffstats
path: root/games/multimc/files/patch-application_UpdateController.cpp
diff options
context:
space:
mode:
authorCameron Katri <me@cameronkatri.com>2021-07-16 10:16:01 -0400
committerCameron Katri <me@cameronkatri.com>2021-07-16 10:16:01 -0400
commit8a1b679969245ed7944ca397b5a9df4370166b68 (patch)
tree355641dbc9d8e351929a54a31a17d605ff6b8d56 /games/multimc/files/patch-application_UpdateController.cpp
parent1dbd8d488ab44da4daea2a36d251d04f0bb7db70 (diff)
downloadfreebsd-ports-8a1b679969245ed7944ca397b5a9df4370166b68.tar.gz
freebsd-ports-8a1b679969245ed7944ca397b5a9df4370166b68.tar.zst
freebsd-ports-8a1b679969245ed7944ca397b5a9df4370166b68.zip
Add multimc with patch to autodetect minecraft-runtime
Diffstat (limited to 'games/multimc/files/patch-application_UpdateController.cpp')
-rw-r--r--games/multimc/files/patch-application_UpdateController.cpp11
1 files changed, 11 insertions, 0 deletions
diff --git a/games/multimc/files/patch-application_UpdateController.cpp b/games/multimc/files/patch-application_UpdateController.cpp
new file mode 100644
index 0000000..ab49773
--- /dev/null
+++ b/games/multimc/files/patch-application_UpdateController.cpp
@@ -0,0 +1,11 @@
+--- application/UpdateController.cpp.orig 2019-03-08 00:52:03 UTC
++++ application/UpdateController.cpp
+@@ -90,7 +90,7 @@ void UpdateController::installUpdates()
+ qDebug() << "Installing updates.";
+ #ifdef Q_OS_WIN
+ QString finishCmd = QApplication::applicationFilePath();
+-#elif defined Q_OS_LINUX
++#elif defined(Q_OS_LINUX) || defined(Q_OS_FREEBSD)
+ QString finishCmd = FS::PathCombine(m_root, "MultiMC");
+ #elif defined Q_OS_MAC
+ QString finishCmd = QApplication::applicationFilePath();