mirror of
https://github.com/pmret/papermario.git
synced 2024-11-08 12:02:30 +01:00
22 lines
631 B
Python
22 lines
631 B
Python
import argparse
|
|
|
|
|
|
def add_custom_arguments(parser: argparse.ArgumentParser):
|
|
parser.add_argument("--version", default="current")
|
|
|
|
|
|
def apply(config, args):
|
|
ver_dir = f"ver/{args.version}/"
|
|
config["baseimg"] = f"{ver_dir}baserom.z64"
|
|
config["myimg"] = f"{ver_dir}build/papermario.z64"
|
|
config["mapfile"] = f"{ver_dir}build/papermario.map"
|
|
config["source_directories"] = [
|
|
"src",
|
|
f"{ver_dir}asm",
|
|
"include",
|
|
f"{ver_dir}assets",
|
|
]
|
|
config["make_command"] = ["ninja"]
|
|
config["objdump_flags"] = ["-M", "reg-names=32"]
|
|
config["expected_dir"] = f"{ver_dir}/expected/"
|