#!/usr/bin/bash if [ $# -eq 0 ] then echo "usage: setinitialcode " echo "Sets the Game Code for a disc application." exit 0 fi for i in "$REVOLUTION_SDK_ROOT"/X86/bin/rvl*.bin do if [ -e $i ] then if ! $REVOLUTION_SDK_ROOT/x86/bin/rvlbinconv -f "$i" -gc $1 then echo "Failed to set the Game Code for the disc application." exit 1 fi fi done echo "Successfully done. Set the Game Code for the disc application to $1." echo echo "**********************************************************************" echo "* If you make master data, you must execute ndrun before you do so!! *" echo "**********************************************************************" echo