summaryrefslogtreecommitdiff
path: root/games/multimc/files/patch-api_logic_minecraft_OpSys.cpp
blob: 923ba7be914bff059b69c24aab5b621668c841ee (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	2017-12-18 00:19:43 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
+}