@echo off if "%1" == "" goto help if /I "%1" == "us" goto ok if /I "%1" == "jp" goto ok if /I "%1" == "eu" goto ok if /I "%1" == "kr" goto ok if /I "%1" == "cn" goto ok echo Illegal argument. Do nothing and exit. goto end :help echo usage: setcountrycode [jp-us-eu-kr-cn] echo Sets the country code on disc. goto end :ok if "%NDEV%" NEQ "" goto NDEV echo NDEV is not found. Do nothing and exit. goto end :NDEV echo NDEV detected if /I "%1" == "cn" goto NDEV_CN if /I "%1" == "kr" goto NDEV_KR if /I "%1" == "eu" goto NDEV_EU if /I "%1" == "us" goto NDEV_US if /I "%1" == "jp" goto NDEV_JP :NDEV_CN for %%i in (%REVOLUTION_SDK_ROOT%\x86\bin\rvl*.bin) do %REVOLUTION_SDK_ROOT%\x86\bin\tickleBI3 -o %%i 0x0 5 if errorlevel 1 goto failed if not exist %REVOLUTION_SDK_ROOT%\x86\bin\wbi.bin goto MSG_CN %REVOLUTION_SDK_ROOT%\x86\bin\tickleWBI %REVOLUTION_SDK_ROOT%\X86\bin\wbi.bin -c 5 if errorlevel 1 goto failed :MSG_CN echo Successfully done. Set the country code for the disc to China. goto mesg :NDEV_KR for %%i in (%REVOLUTION_SDK_ROOT%\x86\bin\rvl*.bin) do %REVOLUTION_SDK_ROOT%\x86\bin\tickleBI3 -o %%i 0x0 4 if errorlevel 1 goto failed if not exist %REVOLUTION_SDK_ROOT%\x86\bin\wbi.bin goto MSG_KR %REVOLUTION_SDK_ROOT%\x86\bin\tickleWBI %REVOLUTION_SDK_ROOT%\X86\bin\wbi.bin -c 4 if errorlevel 1 goto failed :MSG_KR echo Successfully done. Set the country code for the disc to Korea. goto mesg :NDEV_EU for %%i in (%REVOLUTION_SDK_ROOT%\x86\bin\rvl*.bin) do %REVOLUTION_SDK_ROOT%\x86\bin\tickleBI3 -o %%i 0x0 2 if errorlevel 1 goto failed if not exist %REVOLUTION_SDK_ROOT%\x86\bin\wbi.bin goto MSG_EU %REVOLUTION_SDK_ROOT%\x86\bin\tickleWBI %REVOLUTION_SDK_ROOT%\X86\bin\wbi.bin -c 2 if errorlevel 1 goto failed :MSG_EU echo Successfully done. Set the country code for the disc to Europe. goto mesg :NDEV_US for %%i in (%REVOLUTION_SDK_ROOT%\x86\bin\rvl*.bin) do %REVOLUTION_SDK_ROOT%\x86\bin\tickleBI3 -o %%i 0x0 1 if errorlevel 1 goto failed if not exist %REVOLUTION_SDK_ROOT%\x86\bin\wbi.bin goto MSG_US %REVOLUTION_SDK_ROOT%\x86\bin\tickleWBI %REVOLUTION_SDK_ROOT%\X86\bin\wbi.bin -c 1 if errorlevel 1 goto failed :MSG_US echo Successfully done. Set the country code for the disc to US. goto mesg :NDEV_JP for %%i in (%REVOLUTION_SDK_ROOT%\x86\bin\rvl*.bin) do %REVOLUTION_SDK_ROOT%\x86\bin\tickleBI3 -o %%i 0x0 0 if errorlevel 1 goto failed if not exist %REVOLUTION_SDK_ROOT%\x86\bin\wbi.bin goto MSG_JP %REVOLUTION_SDK_ROOT%\x86\bin\tickleWBI %REVOLUTION_SDK_ROOT%\X86\bin\wbi.bin -c 0 if errorlevel 1 goto failed :MSG_JP echo Successfully done. Set the country code for the disc to Japan. goto mesg :failed echo Failed to set the country code on disc. goto end :mesg echo ****************************************************************************** echo * If you make master data, you must execute loadrun/odrun before you do so!! * echo ****************************************************************************** :end