mirror of
https://git.planet-casio.com/Lephenixnoir/fxsdk.git
synced 2024-12-28 20:43:37 +01:00
fxconv: allow custom-type to work as type
This commit is contained in:
parent
f17d741d54
commit
41c7ac0aec
1 changed files with 2 additions and 2 deletions
|
@ -121,7 +121,7 @@ def main():
|
||||||
else:
|
else:
|
||||||
params = fxconv.parse_parameters(args)
|
params = fxconv.parse_parameters(args)
|
||||||
|
|
||||||
if "type" in params:
|
if "type" in params or "custom-type" in params:
|
||||||
pass
|
pass
|
||||||
elif len(mode) == 1:
|
elif len(mode) == 1:
|
||||||
params["type"] = { "b": "binary", "i": "image", "f": "font" }[mode]
|
params["type"] = { "b": "binary", "i": "image", "f": "font" }[mode]
|
||||||
|
@ -129,7 +129,7 @@ def main():
|
||||||
params["type"] = mode
|
params["type"] = mode
|
||||||
|
|
||||||
# Will be deprecated in the future
|
# Will be deprecated in the future
|
||||||
if params["type"] == "image":
|
if params.get("type") == "image":
|
||||||
warn("type 'image' is deprecated, use 'bopti-image' instead")
|
warn("type 'image' is deprecated, use 'bopti-image' instead")
|
||||||
params["type"] = "bopti-image"
|
params["type"] = "bopti-image"
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue