anchor.diff:  if %offlinestorage%==0 if exist %TempStorage%\whatsnew.txt` del %TempStorage%\whatsnew.txt` /q
   
   if not exist %TempStorage% md %TempStorage%
  -if %IOSPatcher_Update_Activate%==1 if %offlinestorage%==0 powershell -command "(new-object System.Net.WebClient).DownloadFile('%FilesHostedOn%/whatsnew.txt', '%TempStorage%/whatsnew.txt')"
  -if %IOSPatcher_Update_Activate%==1 if %offlinestorage%==0 powershell -command "(new-object System.Net.WebClient).DownloadFile('%FilesHostedOn%/version.txt', '%TempStorage%/version.txt')"
  +if %WiiWarePatcher_Update_Activate%==1 if %offlinestorage%==0 powershell -command "(new-object System.Net.WebClient).DownloadFile('%FilesHostedOn%/whatsnew.txt', '%TempStorage%/whatsnew.txt')"
  +if %WiiWarePatcher_Update_Activate%==1 if %offlinestorage%==0 powershell -command "(new-object System.Net.WebClient).DownloadFile('%FilesHostedOn%/version.txt', '%TempStorage%/version.txt')"
   
   	if %offlinestorage%==0 set /a temperrorlev=%errorlevel%
  -	
  +
   	::Bind error codes to errors here
   	if %offlinestorage%==0 if not %errorlevel%==0 goto error_update_not_available
  -	
  +
   
   if exist "%TempStorage%\version.txt`" ren "%TempStorage%\version.txt`" "version.txt"
   if exist "%TempStorage%\whatsnew.txt`" ren "%TempStorage%\whatsnew.txt`" "whatsnew.txt"
   
   if exist %TempStorage%\version.txt set /p updateversion=<%TempStorage%\version.txt
   if not exist %TempStorage%\version.txt set /a updateavailable=0
  -if %IOSPatcher_Update_Activate%==1 if exist %TempStorage%\version.txt set /a updateavailable=1
  -if %updateversion%==%version% set /a updateavailable=0 
  -
  -if %IOSPatcher_Update_Activate%==1 if %updateavailable%==1 goto update_notice
  +if %WiiWarePatcher_Update_Activate%==1 if exist %TempStorage%\version.txt set /a updateavailable=1
  +if %updateversion%==%version% set /a updateavailable=0
  +
  +if %WiiWarePatcher_Update_Activate%==1 if %updateavailable%==1 goto update_notice
   
   if not exist Sharpii.exe goto files_req_err
   if not exist libWiiSharp.dll goto files_req_err
  
positive.code: set modul=WiiWarePatcher.exe
  if not %temperrorlev%==0 goto error_patching
  
  move 00000001.app temp\00000001.app >NUL 
  set /a temperrorlev=%errorlevel%
  set modul=move.exe
  if not %temperrorlev%==0 goto error_patching
  
negative.code: :firststart
  cls
  goto firststart
  :choose_patch_type
  cls
  echo.
  echo              `..````
  echo              yNNNNNNNNMNNmmmmdddhhhyyyysssooo+++/:--.`
  echo              hNNNNNNNNMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMd
  echo              ddmNNd:dNMMMMNMMMMMMMMMMMMMMMMMMMMMMMMMMs
  echo             `mdmNNy dNMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM+
  echo             .mmmmNs mNMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM:
  echo             :mdmmN+`mNMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM.
  echo             /mmmmN:-mNMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMN
  echo             ommmmN.:mMMMMMMMMMMMMmNMMMMMMMMMMMMMMMMMd
  echo             smmmmm`+mMMMMMMMMMNhMNNMNNMMMMMMMMMMMMMMy
  echo             hmmmmh omMMMMMMMMMmhNMMMmNNNNMMMMMMMMMMM+
  echo ------------------------------------------------------------------------------------------------------------------------------
  echo     Please choose what you want to patch.
  echo.
  echo.
  echo  1. I want to patch normal games.  2. I want to patch Wii Speak.
  echo ------------------------------------------------------------------------------------------------------------------------------
  echo            mmmmmh ymMMMMMMMMMNNmmmNmNNNMNNMMMMNyyhhh`
  echo           `mmmmmy hmMMNMNNMMMNNmmmmmdNMMNmmMMMMhyhhy
  echo           -mddmmo`mNMNNNNMMMNNNmdyoo+mMMMNmNMMMNyyys
  echo           :mdmmmo-mNNNNNNNNNNdyo++sssyNMMMMMMMMMhs+-
  echo          .+mmdhhmmmNNNNNNmdysooooosssomMMMNNNMMMm
  echo          o/ossyhdmmNNmdyo+++oooooosssoyNMMNNNMMMM+
  echo          o/::::::://++//+++ooooooo+oo++mNMMmNNMMMm
  echo         `o//::::::::+////+++++++///:/+shNMMNmNNmMM+
  echo         .o////////::+++++++oo++///+syyyymMmNmmmNMMm
  echo         -+//////////o+ooooooosydmdddhhsosNMMmNNNmho            `:/
  echo         .+++++++++++ssss+//oyyysso/:/shmshhs+:.          `-/oydNNNy
  echo           `..-:/+ooss+-`          +mmhdy`           -/shmNNNNNdy+:`
  echo                   `.              yddyo++:    `-/oymNNNNNdy+:`
  echo                                   -odhhhhyddmmmmmNNmhs/:`
  echo                                     :syhdyyyyso+/-`
  set /p s=
  if %s%==1 goto letsbegin
  if %s%==2 goto wii_speak_patch
  goto choose_patch_type
  :wii_speak_patch
  set /a wii_speak_region=NUL
  cls
  echo.
  echo              `..````
  echo              yNNNNNNNNMNNmmmmdddhhhyyyysssooo+++/:--.`
  echo              hNNNNNNNNMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMd
  echo              ddmNNd:dNMMMMNMMMMMMMMMMMMMMMMMMMMMMMMMMs
  echo             `mdmNNy dNMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM+
  echo             .mmmmNs mNMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM:
  echo             :mdmmN+`mNMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM.
  echo             /mmmmN:-mNMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMN
  echo             ommmmN.:mMMMMMMMMMMMMmNMMMMMMMMMMMMMMMMMd
  echo             smmmmm`+mMMMMMMMMMNhMNNMNNMMMMMMMMMMMMMMy
  echo             hmmmmh omMMMMMMMMMmhNMMMmNNNNMMMMMMMMMMM+
  echo ------------------------------------------------------------------------------------------------------------------------------
  echo     Please choose your Wii Speak WAD region to download and patch.
  echo.
  echo.
  echo  1. USA  2. PAL  3. JPN  4. KOR  5. Go back.
  echo ------------------------------------------------------------------------------------------------------------------------------
  echo            mmmmmh ymMMMMMMMMMNNmmmNmNNNMNNMMMMNyyhhh`
  echo           `mmmmmy hmMMNMNNMMMNNmmmmmdNMMNmmMMMMhyhhy
  echo           -mddmmo`mNMNNNNMMMNNNmdyoo+mMMMNmNMMMNyyys
  echo           :mdmmmo-mNNNNNNNNNNdyo++sssyNMMMMMMMMMhs+-
  echo          .+mmdhhmmmNNNNNNmdysooooosssomMMMNNNMMMm
  echo          o/ossyhdmmNNmdyo+++oooooosssoyNMMNNNMMMM+
  echo          o/::::::://++//+++ooooooo+oo++mNMMmNNMMMm
  echo         `o//::::::::+////+++++++///:/+shNMMNmNNmMM+
  echo         .o////////::+++++++oo++///+syyyymMmNmmmNMMm
  echo         -+//////////o+ooooooosydmdddhhsosNMMmNNNmho            `:/
  echo         .+++++++++++ssss+//oyyysso/:/shmshhs+:.          `-/oydNNNy
  echo           `..-:/+ooss+-`          +mmhdy`           -/shmNNNNNdy+:`
  echo                   `.              yddyo++:    `-/oymNNNNNdy+:`
  echo                                   -odhhhhyddmmmmmNNmhs/:`
  echo                                     :syhdyyyyso+/-`
  set /p s=
  if %s%==5 goto choose_patch_type
  
  if %s%==1 set regiontype_speak=0001000148434645
  if %s%==1 set region=USA
  
  if %s%==2 set regiontype_speak=0001000148434650
  if %s%==2 set region=PAL
  
  if %s%==3 set regiontype_speak=0001000148434645
  if %s%==3 set region=JPN
  
  if %s%==4 set regiontype_speak=000100014843464B
  if %s%==4 set region=KOR
  
  if not %regiontype_speak%==NUL goto wii_speak_patch_1
  
  goto wii_speak_patch
  :wii_speak_patch_1
  cls
  echo.
  echo              `..````
  echo              yNNNNNNNNMNNmmmmdddhhhyyyysssooo+++/:--.`
  echo              hNNNNNNNNMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMd
  echo              ddmNNd:dNMMMMNMMMMMMMMMMMMMMMMMMMMMMMMMMs
  echo             `mdmNNy dNMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM+
  echo             .mmmmNs mNMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM:
  echo             :mdmmN+`mNMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM.
  echo             /mmmmN:-mNMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMN
  echo             ommmmN.:mMMMMMMMMMMMMmNMMMMMMMMMMMMMMMMMd
  echo             smmmmm`+mMMMMMMMMMNhMNNMNNMMMMMMMMMMMMMMy
  echo             hmmmmh omMMMMMMMMMmhNMMMmNNNNMMMMMMMMMMM+
  echo ------------------------------------------------------------------------------------------------------------------------------
  echo     Please wait. We are now downloading and patching the Wii Speak Channel ;)...
  echo.
  echo.
  echo.
  echo ------------------------------------------------------------------------------------------------------------------------------
  echo            mmmmmh ymMMMMMMMMMNNmmmNmNNNMNNMMMMNyyhhh`
  echo           `mmmmmy hmMMNMNNMMMNNmmmmmdNMMNmmMMMMhyhhy
  echo           -mddmmo`mNMNNNNMMMNNNmdyoo+mMMMNmNMMMNyyys
  echo           :mdmmmo-mNNNNNNNNNNdyo++sssyNMMMMMMMMMhs+-
  echo          .+mmdhhmmmNNNNNNmdysooooosssomMMMNNNMMMm
  echo          o/ossyhdmmNNmdyo+++oooooosssoyNMMNNNMMMM+
  echo          o/::::::://++//+++ooooooo+oo++mNMMmNNMMMm
  echo         `o//::::::::+////+++++++///:/+shNMMNmNNmMM+
  echo         .o////////::+++++++oo++///+syyyymMmNmmmNMMm
  echo         -+//////////o+ooooooosydmdddhhsosNMMmNNNmho            `:/
  echo         .+++++++++++ssss+//oyyysso/:/shmshhs+:.          `-/oydNNNy
  echo           `..-:/+ooss+-`          +mmhdy`           -/shmNNNNNdy+:`
  echo                   `.              yddyo++:    `-/oymNNNNNdy+:`
  echo                                   -odhhhhyddmmmmmNNmhs/:`
  echo                                     :syhdyyyyso+/-`
  
  sharpii NUSD -id %regiontype_speak% -v 512 -all >NUL
  
  move "%regiontype_speak%v512\%regiontype_speak%v512.wad" "Wii_Speak_Channel_%region%.wad" >NUL
  
  rmdir /s /q %regiontype_speak%v512 >NUL
  
  if %regiontype_speak%==NUL set /a temperrorlev=1
  if %regiontype_speak%==NUL set /a modul=Variables mismatch
  if %regiontype_speak%==NUL goto error_patching
  
  goto letsbegin
  :letsbegin_error
  cls
  echo.
  