remove extra args for compatibility
This commit is contained in:
parent
b6a6de942d
commit
588319ea72
|
@ -125,7 +125,7 @@ def interpret_on_off(value):
|
||||||
def convert_to_on_off(value):
|
def convert_to_on_off(value):
|
||||||
return {True: "on", False: "off"}.get(value, value)
|
return {True: "on", False: "off"}.get(value, value)
|
||||||
|
|
||||||
def roll_settings(weights, path):
|
def roll_settings(weights):
|
||||||
def get_choice(option, root=weights):
|
def get_choice(option, root=weights):
|
||||||
if option not in root:
|
if option not in root:
|
||||||
return None
|
return None
|
||||||
|
@ -233,7 +233,7 @@ def roll_settings(weights, path):
|
||||||
romweights = weights['rom']
|
romweights = weights['rom']
|
||||||
ret.sprite = get_choice('sprite', romweights)
|
ret.sprite = get_choice('sprite', romweights)
|
||||||
if ret.sprite is not None and not os.path.isfile(ret.sprite) and not get_sprite_from_name(ret.sprite):
|
if ret.sprite is not None and not os.path.isfile(ret.sprite) and not get_sprite_from_name(ret.sprite):
|
||||||
logging.Logger('').warning(f"Warning: In yaml file \"{path}\", The choson sprite, \"{ret.sprite}\" does not exist.")
|
logging.Logger('').warning(f"Warning: The choson sprite, \"{ret.sprite}\" does not exist.")
|
||||||
ret.disablemusic = get_choice('disablemusic', romweights)
|
ret.disablemusic = get_choice('disablemusic', romweights)
|
||||||
ret.extendedmsu = get_choice('extendedmsu', romweights)
|
ret.extendedmsu = get_choice('extendedmsu', romweights)
|
||||||
ret.quickswap = get_choice('quickswap', romweights)
|
ret.quickswap = get_choice('quickswap', romweights)
|
||||||
|
|
Loading…
Reference in New Issue