Files
Diddy-Kong-Racing/diff_settings.py
T

21 lines
874 B
Python
Raw Normal View History

2020-06-27 20:31:57 -05:00
#!/usr/bin/env python3
def add_custom_arguments(parser):
group = parser.add_mutually_exclusive_group(required=False)
group.add_argument('-j', dest='lang', action='store_const', const='jp',
help="Set version to JP.")
group.add_argument('-u', dest='lang', action='store_const', const='us',
help="Set version to US.")
group.add_argument('-e', dest='lang', action='store_const', const='eu',
help="Set version to EU.")
group.add_argument('-s', dest='lang', action='store_const', const='sh',
help="Set version to SH.")
def apply(config, args):
lang = args.lang or 'us'
2020-08-04 15:44:39 -05:00
config['mapfile'] = f'build/us_1.0/dkr.map'
config['myimg'] = f'build/us_1.0/dkr.z64'
2020-06-27 20:31:57 -05:00
config['baseimg'] = f'baseroms/Diddy Kong Racing (USA 1.0).z64'
config['makeflags'] = [f'']
config['source_directories'] = ['src']