summaryrefslogtreecommitdiffstats
path: root/logic/OpSys.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'logic/OpSys.cpp')
-rw-r--r--logic/OpSys.cpp11
1 files changed, 11 insertions, 0 deletions
diff --git a/logic/OpSys.cpp b/logic/OpSys.cpp
index 559479fd..f101fd08 100644
--- a/logic/OpSys.cpp
+++ b/logic/OpSys.cpp
@@ -9,4 +9,15 @@ OpSys OpSys_fromString(QString name)
if(name == "osx")
return Os_OSX;
return Os_Other;
+}
+
+QString OpSys_toString(OpSys name)
+{
+ switch(name)
+ {
+ case Os_Linux: return "linux";
+ case Os_OSX: return "osx";
+ case Os_Windows: return "windows";
+ default: return "other";
+ }
} \ No newline at end of file