mirror of
https://github.com/pmret/papermario.git
synced 2024-09-20 00:11:48 +02:00
18 lines
334 B
Python
18 lines
334 B
Python
|
opts = {}
|
||
|
|
||
|
def initialize(config):
|
||
|
global opts
|
||
|
opts = config.get("options")
|
||
|
dog = 5
|
||
|
|
||
|
def set(opt, val):
|
||
|
opts[opt] = val
|
||
|
|
||
|
def get(opt, default=None):
|
||
|
return opts.get(opt, default)
|
||
|
|
||
|
def is_defined(opt):
|
||
|
return opt in opts
|
||
|
|
||
|
def mode_active(mode):
|
||
|
return mode in opts["modes"] or "all" in opts["modes"]
|