summaryrefslogtreecommitdiffstats
path: root/logic/OpSys.h
diff options
context:
space:
mode:
authorPetr Mrázek <peterix@gmail.com>2013-09-18 00:08:42 +0200
committerPetr Mrázek <peterix@gmail.com>2013-09-18 00:08:42 +0200
commit930b07afd4229e952d0cd47ca62cd94235499a0c (patch)
tree34cd74c3652da4b3ad0fd008faa2ab67adb4901f /logic/OpSys.h
parent5cd3420c46e0b54f1479ddf720a8c9131c460a5e (diff)
parentb979d0ce5da515793a02802a6421ef607a498323 (diff)
downloadMultiMC-930b07afd4229e952d0cd47ca62cd94235499a0c.tar
MultiMC-930b07afd4229e952d0cd47ca62cd94235499a0c.tar.gz
MultiMC-930b07afd4229e952d0cd47ca62cd94235499a0c.tar.lz
MultiMC-930b07afd4229e952d0cd47ca62cd94235499a0c.tar.xz
MultiMC-930b07afd4229e952d0cd47ca62cd94235499a0c.zip
Merge branch 'feature_library_model' into develop
Diffstat (limited to 'logic/OpSys.h')
-rw-r--r--logic/OpSys.h21
1 files changed, 21 insertions, 0 deletions
diff --git a/logic/OpSys.h b/logic/OpSys.h
new file mode 100644
index 00000000..c68c437a
--- /dev/null
+++ b/logic/OpSys.h
@@ -0,0 +1,21 @@
+#pragma once
+#include <QString>
+enum OpSys
+{
+ Os_Windows,
+ Os_Linux,
+ Os_OSX,
+ Os_Other
+};
+
+OpSys OpSys_fromString(QString);
+
+#ifdef Q_OS_WIN32
+ #define currentSystem Os_Windows
+#else
+ #ifdef Q_OS_MAC
+ #define currentSystem Os_OSX
+ #else
+ #define currentSystem Os_Linux
+ #endif
+#endif \ No newline at end of file