#! bash if [ $# -eq 0 ] then echo "usage: setsmemsize 24" echo "usage: setsmemsize 48" echo " Sets console simulated mem size. Either 24MB or 48MB is set as the console simulated memory size." exit 1 fi if [ "$AMCDDKBIN" = "" -a "$ODEMUSDKBIN" = "" ] then echo "Neither DDH nor GDEV are found. Do nothing and exit." fi if [ "$AMCDDKBIN" != "" ] then echo "DDH detected" stop # # change DDH configuration # if [ $1 = 24 ] then $DOLPHIN_ROOT/x86/bin/tickleBI2 -d `getdvddriveletter` 4 0x1800000 echo "Successfully done. Set 24MB as the console simulated mem size." elif [ $1 = 48 ] then $DOLPHIN_ROOT/x86/bin/tickleBI2 -d `getdvddriveletter` 4 0x3000000 echo "Successfully done. Set 48MB as the console simulated mem size." elif [ $1 = 47 ] then $DOLPHIN_ROOT/x86/bin/tickleBI2 -d `getdvddriveletter` 4 0x2f00000 echo "Successfully done. Set 47MB as the console simulated mem size." elif [ $1 = "0x1800000" ] then $DOLPHIN_ROOT/x86/bin/tickleBI2 -d `getdvddriveletter` 4 0x1800000 echo "Successfully done. Set 24MB as the console simulated mem size." elif [ $1 = "0x3000000" ] then $DOLPHIN_ROOT/x86/bin/tickleBI2 -d `getdvddriveletter` 4 0x3000000 echo "Successfully done. Set 48MB as the console simulated mem size." elif [ $1 = "0x2f00000" ] then $DOLPHIN_ROOT/x86/bin/tickleBI2 -d `getdvddriveletter` 4 0x2f00000 echo "Successfully done. Set 47MB as the console simulated mem size." elif [ $1 = "0" ] then $DOLPHIN_ROOT/x86/bin/tickleBI2 -d `getdvddriveletter` 4 0x0 echo "Successfully done. Physical memory size is considered as the console simulated mem size." elif [ $1 = "0x0" ] then $DOLPHIN_ROOT/x86/bin/tickleBI2 -d `getdvddriveletter` 4 0x0 echo "Successfully done. Physical memory size is considered as the console simulated mem size." else echo "usage: setsmemsize 24" echo "usage: setsmemsize 48" echo " Sets console simulated mem size. Either 24MB or 48MB is set as the console simulated memory size." exit 1 fi fi if [ "$ODEMUSDKBIN" != "" ] then echo "GDEV detected" # # change GDEV configuration # if [ $1 = 24 ] then $DOLPHIN_ROOT/x86/bin/tickleBI2 -o "$ODEMUSDKBIN/OdemRun.bi2" 4 0x1800000 echo "Successfully done. Set 24MB as the console simulated mem size." elif [ $1 = 48 ] then $DOLPHIN_ROOT/x86/bin/tickleBI2 -o "$ODEMUSDKBIN/OdemRun.bi2" 4 0x3000000 echo "Successfully done. Set 48MB as the console simulated mem size." elif [ $1 = 47 ] then $DOLPHIN_ROOT/x86/bin/tickleBI2 -o "$ODEMUSDKBIN/OdemRun.bi2" 4 0x2f00000 echo "Successfully done. Set 47MB as the console simulated mem size." elif [ $1 = "0x1800000" ] then $DOLPHIN_ROOT/x86/bin/tickleBI2 -o "$ODEMUSDKBIN/OdemRun.bi2" 4 0x1800000 echo "Successfully done. Set 24MB as the console simulated mem size." elif [ $1 = "0x3000000" ] then $DOLPHIN_ROOT/x86/bin/tickleBI2 -o "$ODEMUSDKBIN/OdemRun.bi2" 4 0x3000000 echo "Successfully done. Set 48MB as the console simulated mem size." elif [ $1 = "0x2f00000" ] then $DOLPHIN_ROOT/x86/bin/tickleBI2 -o "$ODEMUSDKBIN/OdemRun.bi2" 4 0x2f00000 echo "Successfully done. Set 47MB as the console simulated mem size." elif [ $1 = "0" ] then $DOLPHIN_ROOT/x86/bin/tickleBI2 -o "$ODEMUSDKBIN/OdemRun.bi2" 4 0x0 echo "Successfully done. Physical memory size is considered as the console simulated mem size." elif [ $1 = "0x0" ] then $DOLPHIN_ROOT/x86/bin/tickleBI2 -o "$ODEMUSDKBIN/OdemRun.bi2" 4 0x0 echo "Successfully done. Physical memory size is considered as the console simulated mem size." else echo "usage: setsmemsize 24" echo "usage: setsmemsize 48" echo " Sets console simulated mem size. Either 24MB or 48MB is set as the console simulated memory size." exit 1 fi fi echo echo "******************************************************************************" echo "* If you make master data, you must execute loadrun/odrun before you do so!! *" echo "******************************************************************************" echo