summaryrefslogtreecommitdiffstats
path: root/logic/OpSys.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'logic/OpSys.cpp')
-rw-r--r--logic/OpSys.cpp12
1 files changed, 12 insertions, 0 deletions
diff --git a/logic/OpSys.cpp b/logic/OpSys.cpp
new file mode 100644
index 00000000..559479fd
--- /dev/null
+++ b/logic/OpSys.cpp
@@ -0,0 +1,12 @@
+#include "OpSys.h"
+
+OpSys OpSys_fromString(QString name)
+{
+ if(name == "linux")
+ return Os_Linux;
+ if(name == "windows")
+ return Os_Windows;
+ if(name == "osx")
+ return Os_OSX;
+ return Os_Other;
+} \ No newline at end of file