1#!/usr/bin/bash 2 3if [ $# -eq 0 ] 4then 5 echo "usage: setinitialcode <Game Code>" 6 echo "Sets the Game Code for a disc application." 7 exit 0 8fi 9 10for i in "$REVOLUTION_SDK_ROOT"/X86/bin/rvl*.bin 11do 12 if [ -e $i ] 13 then 14 if ! $REVOLUTION_SDK_ROOT/x86/bin/rvlbinconv -f "$i" -gc $1 15 then 16 echo "Failed to set the Game Code for the disc application." 17 exit 1 18 fi 19 fi 20done 21echo "Successfully done. Set the Game Code for the disc application to $1." 22 23echo 24echo "**********************************************************************" 25echo "* If you make master data, you must execute ndrun before you do so!! *" 26echo "**********************************************************************" 27echo 28