Super Mario 64 Source
A Super Mario 64 decompilation, brought to you by a bunch of clever folks.
Variables
build Namespace Reference

Variables

 dir_path = os.path.dirname(os.path.realpath(__file__))
 
list asm_processor = ['python3', os.path.join(dir_path, "asm-processor.py")]
 
 prelude = os.path.join(dir_path, "prelude.inc")
 
 all_args = sys.argv[1:]
 
 sep1 = all_args.index('--')
 
 sep2 = all_args.index('--', sep1+1)
 
 compiler = all_args[:sep1]
 
 assembler = all_args[sep1+1:sep2]
 
string assembler_sh = ' '.join(shlex.quote(x) for x in assembler)
 
 compile_args = all_args[sep2+1:]
 
 in_file = compile_args[-1]
 
 out_ind = compile_args.index('-o')
 
 out_file = compile_args[out_ind + 1]
 
 in_dir = os.path.split(os.path.realpath(in_file))[0]
 
list opt_flags = [x for x in compile_args if x in ['-g', '-O2', '-framepointer']]
 
 preprocessed_file = tempfile.NamedTemporaryFile(prefix='preprocessed', suffix='.c')
 
 stdout
 

Variable Documentation

◆ all_args

build.all_args = sys.argv[1:]

◆ asm_processor

list build.asm_processor = ['python3', os.path.join(dir_path, "asm-processor.py")]

◆ assembler

build.assembler = all_args[sep1+1:sep2]

◆ assembler_sh

string build.assembler_sh = ' '.join(shlex.quote(x) for x in assembler)

◆ compile_args

build.compile_args = all_args[sep2+1:]

◆ compiler

build.compiler = all_args[:sep1]

◆ dir_path

build.dir_path = os.path.dirname(os.path.realpath(__file__))

◆ in_dir

build.in_dir = os.path.split(os.path.realpath(in_file))[0]

◆ in_file

build.in_file = compile_args[-1]

◆ opt_flags

list build.opt_flags = [x for x in compile_args if x in ['-g', '-O2', '-framepointer']]

◆ out_file

build.out_file = compile_args[out_ind + 1]

◆ out_ind

build.out_ind = compile_args.index('-o')

◆ prelude

build.prelude = os.path.join(dir_path, "prelude.inc")

◆ preprocessed_file

build.preprocessed_file = tempfile.NamedTemporaryFile(prefix='preprocessed', suffix='.c')

◆ sep1

build.sep1 = all_args.index('--')

◆ sep2

build.sep2 = all_args.index('--', sep1+1)

◆ stdout

build.stdout