summaryrefslogtreecommitdiff
path: root/diff_settings.py
blob: 65b10e73fc0b83a7b2ffd81f8e0220cdf56be940 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/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-1.0',
            help="Set version to EU.")
    group.add_argument('-eu11', dest='lang', action='store_const', const='eu-final',
            help="Set version to EU.")

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'] = ['.']