diff options
author | Petr Mrázek <peterix@gmail.com> | 2013-09-11 23:43:17 +0200 |
---|---|---|
committer | Petr Mrázek <peterix@gmail.com> | 2013-09-11 23:43:17 +0200 |
commit | 7721c57e5e1093a3d8597b6b6f30c97d2aa3d8a5 (patch) | |
tree | 5b8e5d3401d535c9f429d1bcdaa51e6968998470 /logic/OpSys.h | |
parent | 108a5a677c4bf248b70e77046502ea96bd9cfe65 (diff) | |
download | MultiMC-7721c57e5e1093a3d8597b6b6f30c97d2aa3d8a5.tar MultiMC-7721c57e5e1093a3d8597b6b6f30c97d2aa3d8a5.tar.gz MultiMC-7721c57e5e1093a3d8597b6b6f30c97d2aa3d8a5.tar.lz MultiMC-7721c57e5e1093a3d8597b6b6f30c97d2aa3d8a5.tar.xz MultiMC-7721c57e5e1093a3d8597b6b6f30c97d2aa3d8a5.zip |
Split OneSixVersion into parts.
Diffstat (limited to 'logic/OpSys.h')
-rw-r--r-- | logic/OpSys.h | 21 |
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 |