[v0.0.8] support ALL as version
This commit is contained in:
parent
3da33e9d7e
commit
28b19166d7
2 changed files with 31 additions and 19 deletions
|
@ -1,6 +1,6 @@
|
|||
[metadata]
|
||||
name = supSMSASM
|
||||
version = 0.0.7
|
||||
version = 0.0.8
|
||||
author = sup39
|
||||
author_email = sms@sup39.dev
|
||||
description = A tool to make Gecko code from ASM for SMS
|
||||
|
|
|
@ -204,7 +204,19 @@ def main():
|
|||
sys.exit(1)
|
||||
|
||||
fnIn = argv[1]
|
||||
dolver = normalize_dolver(argv[2]) if argc > 2 else 'GMSJ01'
|
||||
verIn = argv[2]
|
||||
if verIn.lower() == 'all':
|
||||
ans = ''
|
||||
indent = ' '
|
||||
for dolver in ['GMSJ01', 'GMSJ0A', 'GMSP01', 'GMSE01']:
|
||||
r = asm2gecko(fnIn, dolver)
|
||||
codes, codeSymbs, asmSymbs, isC2 = r
|
||||
ans += f'<source version="{dolver}">\n'
|
||||
ans += '\n'.join(indent+line for line in codes)
|
||||
ans += '\n</source>\n'
|
||||
pbcopy(ans)
|
||||
else:
|
||||
dolver = normalize_dolver(verIn) if argc > 2 else 'GMSJ01'
|
||||
if dolver is None:
|
||||
logger.error('Unknown dol version: %s'%argv[2])
|
||||
sys.exit(1)
|
||||
|
|
Reference in a new issue