MCPcopy Create free account
hub / github.com/MultiMC/Launcher / RuleAction_fromString

Function RuleAction_fromString

launcher/minecraft/Rule.cpp:21–28  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

19#include "Rule.h"
20
21RuleAction RuleAction_fromString(QString name)
22{
23 if (name == "allow")
24 return Allow;
25 if (name == "disallow")
26 return Disallow;
27 return Defer;
28}
29
30QList<std::shared_ptr<Rule>> rulesFromJsonV4(const QJsonObject &objectWithRules)
31{

Callers 1

rulesFromJsonV4Function · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected