-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathdiff_settings.py
More file actions
38 lines (30 loc) · 1.21 KB
/
Copy pathdiff_settings.py
File metadata and controls
38 lines (30 loc) · 1.21 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
#!/usr/bin/env python3
def add_custom_arguments(parser):
parser.add_argument(
"--version",
default="us",
dest='version',
help="Decide what version of the game to use (us, etc.)",
)
def apply_rock_neo(config, version):
config['baseimg'] = f'disks/{version}/' + (f'ROCK_NEO.EXE')
config['myimg'] = f'build/' + (f'rock_neo.exe')
config['mapfile'] = f'build/rock_neo.map'
config['source_directories'] = [
f'src/rock_neo', 'include', f'asm/rock_neo']
config['objdump_executable'] = 'mipsel-elf-objdump'
def apply_bin(config, version, name):
config["arch"] = "mipsel"
config['baseimg'] = f'disks/{version}/' + (f'CDDATA/DAT/{name}.BIN').upper()
config['myimg'] = f'build/{version}/' + (f'{name}.bin').upper()
config['mapfile'] = f'build/{version}/{name}.map'
config['source_directories'] = [
f'src/{name}', 'include', f'asm/{version}/{name}']
config['objdump_executable'] = 'mipsel-elf-objdump'
def apply(config, args):
name = 'rock_neo'
version = args.version or 'us'
if name.startswith("rock_neo"):
apply_rock_neo(config, version)
config["arch"] = "mipsel"
config['objdump_executable'] = 'mipsel-elf-objdump'