mirror of https://github.com/n64decomp/mk64.git
19 lines
787 B
Python
19 lines
787 B
Python
#!/usr/bin/env python3
|
|
|
|
def add_custom_arguments(parser):
|
|
group = parser.add_mutually_exclusive_group(required=False)
|
|
group.add_argument('-u', dest='lang', action='store_const', const='us',
|
|
help="Set version to US.")
|
|
group.add_argument('-eu10', dest='lang', action='store_const', const='eu.v10',
|
|
help="Set version to EU 1.0.")
|
|
group.add_argument('-eu11', dest='lang', action='store_const', const='eu.v11',
|
|
help="Set version to EU 1.1.")
|
|
|
|
def apply(config, args):
|
|
lang = args.lang or 'us'
|
|
config['mapfile'] = f'build/{lang}/mk64.{lang}.map'
|
|
config['myimg'] = f'build/{lang}/mk64.{lang}.z64'
|
|
config['baseimg'] = f'baserom.{lang}.z64'
|
|
config['makeflags'] = [f'VERSION={lang}']
|
|
config['source_directories'] = ['.']
|