generateMojang.py 文件源码

python
阅读 20 收藏 0 点赞 0 评论 0

项目:meta 作者: MultiMC 项目源码 文件源码
def isOnlyMacOS(rules, specifier):
    allowsOSX = False
    allowsAll = False
    #print("Considering", specifier, "rules", rules)
    if rules:
        for rule in rules:
            if rule.action == "allow" and rule.os and rule.os.name == "osx":
                allowsOSX = True
            if rule.action == "allow" and not rule.os:
                allowsAll = True
        if allowsOSX and not allowsAll:
            return True
    return False


# get the local version list
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号