summaryrefslogtreecommitdiffstats
path: root/games/multimc/files/patch-api_logic_minecraft_OpSys.h
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-api_logic_minecraft_OpSys.h
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-api_logic_minecraft_OpSys.h')
-rw-r--r--games/multimc/files/patch-api_logic_minecraft_OpSys.h26
1 files changed, 26 insertions, 0 deletions
diff --git a/games/multimc/files/patch-api_logic_minecraft_OpSys.h b/games/multimc/files/patch-api_logic_minecraft_OpSys.h
new file mode 100644
index 0000000..5286946
--- /dev/null
+++ b/games/multimc/files/patch-api_logic_minecraft_OpSys.h
@@ -0,0 +1,26 @@
+--- api/logic/minecraft/OpSys.h.orig 2019-03-09 16:25:37 UTC
++++ api/logic/minecraft/OpSys.h
+@@ -18,6 +18,7 @@
+ enum OpSys
+ {
+ Os_Windows,
++ Os_FreeBSD,
+ Os_Linux,
+ Os_OSX,
+ Os_Other
+@@ -28,10 +29,10 @@ QString OpSys_toString(OpSys);
+
+ #ifdef Q_OS_WIN32
+ #define currentSystem Os_Windows
+-#else
+-#ifdef Q_OS_MAC
++#elif Q_OS_MAC
+ #define currentSystem Os_OSX
++#elif defined Q_OS_FREEBSD
++#define currentSystem Os_FreeBSD
+ #else
+ #define currentSystem Os_Linux
+-#endif
+-#endif
+\ No newline at end of file
++#endif