summaryrefslogtreecommitdiffstats
path: root/logic/OpSys.cpp
diff options
context:
space:
mode:
authorPetr Mrázek <peterix@gmail.com>2013-09-22 14:03:05 +0200
committerPetr Mrázek <peterix@gmail.com>2013-09-22 14:03:05 +0200
commit1bed5e4023f503cb95a914c1e6886e045b7f34e2 (patch)
tree6c2a2eb34b93bdd24e7db1f9378b231084c0b27a /logic/OpSys.cpp
parent930b07afd4229e952d0cd47ca62cd94235499a0c (diff)
parent9d03a9c1e3b9c24a4146adedb2971591d23b037a (diff)
downloadMultiMC-1bed5e4023f503cb95a914c1e6886e045b7f34e2.tar
MultiMC-1bed5e4023f503cb95a914c1e6886e045b7f34e2.tar.gz
MultiMC-1bed5e4023f503cb95a914c1e6886e045b7f34e2.tar.lz
MultiMC-1bed5e4023f503cb95a914c1e6886e045b7f34e2.tar.xz
MultiMC-1bed5e4023f503cb95a914c1e6886e045b7f34e2.zip
Merge branch 'feature_onesix_forge' into develop
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