mirror of
https://github.com/ACreTeam/ac-decomp
synced 2026-07-09 12:37:22 -04:00
Fixed issues, tried to implement some of Cuyler files.
This commit is contained in:
@@ -0,0 +1,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")
|
||||
Reference in New Issue
Block a user