diff options
author | Petr Mrázek <peterix@gmail.com> | 2013-09-22 14:03:05 +0200 |
---|---|---|
committer | Petr Mrázek <peterix@gmail.com> | 2013-09-22 14:03:05 +0200 |
commit | 1bed5e4023f503cb95a914c1e6886e045b7f34e2 (patch) | |
tree | 6c2a2eb34b93bdd24e7db1f9378b231084c0b27a /logic/OpSys.cpp | |
parent | 930b07afd4229e952d0cd47ca62cd94235499a0c (diff) | |
parent | 9d03a9c1e3b9c24a4146adedb2971591d23b037a (diff) | |
download | PrismLauncher-1bed5e4023f503cb95a914c1e6886e045b7f34e2.tar.gz PrismLauncher-1bed5e4023f503cb95a914c1e6886e045b7f34e2.tar.bz2 PrismLauncher-1bed5e4023f503cb95a914c1e6886e045b7f34e2.zip |
Merge branch 'feature_onesix_forge' into develop
Diffstat (limited to 'logic/OpSys.cpp')
-rw-r--r-- | logic/OpSys.cpp | 11 |
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 |