summaryrefslogtreecommitdiffstats
path: root/logic/OneSixRule.cpp
diff options
context:
space:
mode:
authorPetr Mrázek <peterix@gmail.com>2013-09-11 23:43:17 +0200
committerPetr Mrázek <peterix@gmail.com>2013-09-11 23:43:17 +0200
commit7721c57e5e1093a3d8597b6b6f30c97d2aa3d8a5 (patch)
tree5b8e5d3401d535c9f429d1bcdaa51e6968998470 /logic/OneSixRule.cpp
parent108a5a677c4bf248b70e77046502ea96bd9cfe65 (diff)
downloadMultiMC-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/OneSixRule.cpp')
-rw-r--r--logic/OneSixRule.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/logic/OneSixRule.cpp b/logic/OneSixRule.cpp
new file mode 100644
index 00000000..85f7d434
--- /dev/null
+++ b/logic/OneSixRule.cpp
@@ -0,0 +1,10 @@
+#include "OneSixRule.h"
+
+RuleAction RuleAction_fromString(QString name)
+{
+ if(name == "allow")
+ return Allow;
+ if(name == "disallow")
+ return Disallow;
+ return Defer;
+} \ No newline at end of file