forked from Lainports/opnsense-ports
27 lines
561 B
C++
27 lines
561 B
C++
--- 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
|
|
+}
|