mirror of
https://git.planet-casio.com/Lephenixnoir/fxsdk.git
synced 2025-06-06 06:35:09 +02:00
fxconv: fix CLI which was broken since 4d46661d3
This commit is contained in:
parent
9e097109bc
commit
f17d741d54
2 changed files with 4 additions and 4 deletions
|
@ -119,7 +119,7 @@ def main():
|
||||||
|
|
||||||
# In manual conversion modes, read parameters from the command-line
|
# In manual conversion modes, read parameters from the command-line
|
||||||
else:
|
else:
|
||||||
params = parse_parameters(args)
|
params = fxconv.parse_parameters(args)
|
||||||
|
|
||||||
if "type" in params:
|
if "type" in params:
|
||||||
pass
|
pass
|
||||||
|
|
|
@ -25,7 +25,7 @@ __all__ = [
|
||||||
"convert_topti",
|
"convert_topti",
|
||||||
"convert_libimg_fx", "convert_libimg_cg",
|
"convert_libimg_fx", "convert_libimg_cg",
|
||||||
# Meta API to use fxconv-metadata.txt files
|
# Meta API to use fxconv-metadata.txt files
|
||||||
"Metadata",
|
"Metadata", "parse_parameters",
|
||||||
]
|
]
|
||||||
|
|
||||||
#
|
#
|
||||||
|
@ -1353,7 +1353,7 @@ def elf(data, output, symbol, toolchain=None, arch=None, section=None,
|
||||||
# Meta API
|
# Meta API
|
||||||
#
|
#
|
||||||
|
|
||||||
def _parse_parameters(params):
|
def parse_parameters(params):
|
||||||
"""Parse parameters of the form "NAME:VALUE" into a dictionary."""
|
"""Parse parameters of the form "NAME:VALUE" into a dictionary."""
|
||||||
d = dict()
|
d = dict()
|
||||||
|
|
||||||
|
@ -1405,7 +1405,7 @@ def _parse_metadata(contents):
|
||||||
metadata = []
|
metadata = []
|
||||||
for (wildcard, params) in elements:
|
for (wildcard, params) in elements:
|
||||||
params = [ s.strip() for s in params.split("\n") if s.strip() ]
|
params = [ s.strip() for s in params.split("\n") if s.strip() ]
|
||||||
metadata.append((wildcard, _parse_parameters(params)))
|
metadata.append((wildcard, parse_parameters(params)))
|
||||||
|
|
||||||
return metadata
|
return metadata
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue