forked from ACreTeam/ac-decomp
-
Notifications
You must be signed in to change notification settings - Fork 0
/
diff_settings.py
24 lines (22 loc) · 926 Bytes
/
diff_settings.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
from argparse import ArgumentParser, Namespace
import common as c
def apply(config, args: Namespace):
if args.rel:
config["mapfile"] = c.REL_MAP
config["myimg"] = c.REL_PLF
config["baseimg"] = c.REL_EXPECTED
config["source_directories"] = [c.REL_SRCDIR, c.INCDIR]
else:
config["mapfile"] = c.DOL_MAP
config["myimg"] = c.DOL_ELF
config["baseimg"] = c.DOL_EXPECTED
config["source_directories"] = [c.DOL_SRCDIR, c.INCDIR]
config["make_command"] = ["ninja"]
config["makeflags"] = []
config["arch"] = "ppc"
config["map_format"] = "mw"
config["mw_build_dir"] = c.BUILDDIR
config["objdump_executable"] = c.OBJDUMP
config["show_line_numbers_default"] = True
def add_custom_arguments(parser: ArgumentParser):
parser.add_argument("-r", "--rel", action="store_true", help="(SPM) Diff a function in relF.rel")