@echo off if "%1" == "" goto help if "%AMCDDKBIN%" NEQ "" goto AMC if "%ODEMUSDKBIN%" NEQ "" goto GDEV echo Neither DDH nor GDEV are found. Do nothing and exit. goto end :help 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. goto end :AMC echo DDH detected getdvddriveletter > _drive.txt set /p _amc_drive_=< _drive.txt if "%1" == "24" ( goto AMCSET24 ) if "%1" == "48" ( goto AMCSET48 ) if "%1" == "47" ( goto AMCSET47 ) if "%1" == "0x1800000" ( goto AMCSET24 ) if "%1" == "0x3000000" ( goto AMCSET48 ) if "%1" == "0x2f00000" ( goto AMCSET47 ) if "%1" == "0" ( goto AMCSET0 ) if "%1" == "0x0" ( goto AMCSET0 ) 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. goto end :AMCSET24 %DOLPHIN_X86_TOOLS%\tickleBI2 -d %_amc_drive_% 4 0x1800000 echo Successfully done. Set 24MB as the console simulated mem size. goto AMCDONE :AMCSET48 %DOLPHIN_X86_TOOLS%\tickleBI2 -d %_amc_drive_% 4 0x3000000 echo Successfully done. Set 48MB as the console simulated mem size. goto AMCDONE :AMCSET47 %DOLPHIN_X86_TOOLS%\tickleBI2 -d %_amc_drive_% 4 0x2f00000 echo Successfully done. Set 47MB as the console simulated mem size. goto AMCDONE :AMCSET0 %DOLPHIN_X86_TOOLS%\tickleBI2 -d %_amc_drive_% 4 0x0 echo Successfully done. Physical memory size is considered as the console simulated mem size. goto AMCDONE :AMCDONE del _drive.txt /q rem Support both DDH and GDEV if "%ODEMUSDKBIN%" NEQ "" goto GDEV goto ENDWARNING :GDEV echo GDEV detected if "%1" == "24" ( goto GDEVSET24 ) if "%1" == "48" ( goto GDEVSET48 ) if "%1" == "47" ( goto GDEVSET47 ) if "%1" == "0x1800000" ( goto GDEVSET24 ) if "%1" == "0x3000000" ( goto GDEVSET48 ) if "%1" == "0x2f00000" ( goto GDEVSET47 ) if "%1" == "0" ( goto GDEVSET0 ) if "%1" == "0x0" ( goto GDEVSET0 ) 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. goto end :GDEVSET24 %DOLPHIN_X86_TOOLS%\tickleBI2 -o %ODEMUSDKBIN%\OdemRun.bi2 4 0x1800000 echo Successfully done. Set 24MB as the console simulated mem size. goto GDEVDONE :GDEVSET48 %DOLPHIN_X86_TOOLS%\tickleBI2 -o %ODEMUSDKBIN%\OdemRun.bi2 4 0x3000000 echo Successfully done. Set 48MB as the console simulated mem size. goto GDEVDONE :GDEVSET47 %DOLPHIN_X86_TOOLS%\tickleBI2 -o %ODEMUSDKBIN%\OdemRun.bi2 4 0x2f00000 echo Successfully done. Set 47MB as the console simulated mem size. goto GDEVDONE :GDEVSET0 %DOLPHIN_X86_TOOLS%\tickleBI2 -o %ODEMUSDKBIN%\OdemRun.bi2 4 0x0 echo Successfully done. Physical memory size is considered as the console simulated mem size. goto GDEVDONE :GDEVDONE :ENDWARNING echo ****************************************************************************** echo * If you make master data, you must execute loadrun/odrun before you do so!! * echo ****************************************************************************** :end