Introducing VersionPatch base class for version files and minecraft versions
This commit is contained in:
parent
8a3a0f5a52
commit
9860d5ee12
19 changed files with 287 additions and 210 deletions
|
@ -18,6 +18,15 @@
|
|||
|
||||
#include "OneSixRule.h"
|
||||
|
||||
RuleAction RuleAction_fromString(QString name)
|
||||
{
|
||||
if (name == "allow")
|
||||
return Allow;
|
||||
if (name == "disallow")
|
||||
return Disallow;
|
||||
return Defer;
|
||||
}
|
||||
|
||||
QList<std::shared_ptr<Rule>> rulesFromJsonV4(const QJsonObject &objectWithRules)
|
||||
{
|
||||
QList<std::shared_ptr<Rule>> rules;
|
||||
|
@ -79,11 +88,3 @@ QJsonObject OsRule::toJson()
|
|||
return ruleObj;
|
||||
}
|
||||
|
||||
RuleAction RuleAction_fromString(QString name)
|
||||
{
|
||||
if (name == "allow")
|
||||
return Allow;
|
||||
if (name == "disallow")
|
||||
return Disallow;
|
||||
return Defer;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue