summaryrefslogtreecommitdiffstats
path: root/games/multimc/files/patch-api_logic_minecraft_OpSys.cpp
blob: 3879286f5b4437e9b78043c9cfae3340e412872e (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
--- api/logic/minecraft/OpSys.cpp.orig	2019-03-09 16:23:18 UTC
+++ api/logic/minecraft/OpSys.cpp
@@ -17,6 +17,8 @@
 
 OpSys OpSys_fromString(QString name)
 {
+    if (name == "freebsd")
+        return Os_FreeBSD;
     if (name == "linux")
         return Os_Linux;
     if (name == "windows")
@@ -30,6 +32,8 @@ QString OpSys_toString(OpSys name)
 {
     switch (name)
     {
+    case Os_FreeBSD:
+        return "freebsd";
     case Os_Linux:
         return "linux";
     case Os_OSX:
@@ -39,4 +43,4 @@ QString OpSys_toString(OpSys name)
     default:
         return "other";
     }
-}
\ No newline at end of file
+}