You've already forked smb-decomp
mirror of
https://github.com/encounter/smb-decomp.git
synced 2026-03-30 11:38:28 -07:00
e9c56c40c9
* start decompiling code_0.s * decompile more of code_0.s * remove dump file * decompile more of code_0.s * decompile more of code_0.s * finish decompiling code_0.s * damn tabs * cleanup * more labeling * rename code_0_2.c to light.c * migrate code_0.s .sbss variables * migrate more data from code_0.s * rename code_0.c to frustum.c * more labeling * dump remaining .data section from code_0.s
22 lines
846 B
Python
Executable File
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.elf'
|
|
config['baseimg'] = 'baserom.elf'
|
|
|
|
#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"
|