Super Mario 64s source code (from a leak on 4chan so be careful)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

33 lines
536 B

#!/usr/bin/env bash
BASEROM=baseromus
LANG=us
POSITIONAL=()
while [[ $# -gt 0 ]]; do
case "$1" in
-j)
BASEROM=baserom
LANG=jp
shift
;;
-u)
BASEROM=baseromus
LANG=us
shift
;;
*)
POSITIONAL+=("$1")
shift
;;
esac
done
set -- "${POSITIONAL[@]}"
LANG_SHORT=${LANG:0:1}
MAPFILE="build/$LANG/sm64.map"
MYDUMP=sm64.$LANG_SHORT.dump
MYIMG=build/$LANG/sm64.$LANG_SHORT.z64
BASEDUMP=$BASEROM.dump
BASEIMG=$BASEROM.z64
MAKEFLAGS="VERSION=$LANG"