Files
smb-decomp/diff_settings.py
2022-02-10 23:23:19 -06:00

22 lines
846 B
Python
Executable File

import subprocess, binascii
def apply(config, args):
p = subprocess.Popen(["make", "print-DEVKITPPC"], stdout=subprocess.PIPE)
devkit_str = p.communicate()[0].decode("ascii")
devkit_path = devkit_str.split("[")[1][:-2]
config['mapfile'] = 'supermonkeyball.map'
config['myimg'] = 'supermonkeyball.dol'
config['baseimg'] = 'baserom.dol'
#config['mapfile'] = 'mkbe.sel_stage.map'
#config['myimg'] = 'mkbe.sel_stage.rel'
#config['baseimg'] = 'baserom.mkbe.sel_stage.rel'
config['makeflags'] = []
config['source_directories'] = ['src', 'include', 'spec']
config["arch"] = "ppc"
config["map_format"] = "mw" # gnu or mw
config["mw_build_dir"] = "./" # only needed for mw map format
config["makeflags"] = []
config["objdump_executable"] = devkit_path+"/bin/powerpc-eabi-objdump"