Advertisement
RiCON

Untitled

Jun 23rd, 2011
207
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.46 KB | None | 0 0
  1. @echo off
  2.  
  3.  
  4. if exist %windir%\SysWOW64\NUL goto software_64bit else goto software_32bit
  5.  
  6. :software_32bit
  7. ::echo 32bit
  8. FOR /F "tokens=2*" %%A IN ('REG QUERY "HKLM\SOFTWARE\Riot Games\RADS" /v LocalRootFolder') DO SET Game=%%B
  9. goto check
  10.  
  11. :software_64bit
  12. ::echo 64bit
  13. FOR /F "tokens=2*" %%A IN ('REG QUERY "HKLM\SOFTWARE\Wow6432Node\Riot Games\RADS" /v LocalRootFolder') DO SET Game=%%B
  14.  
  15. :check
  16. ::%Game% = Path to RADS directory
  17. ::%launcher% = Path to lol.launcher.admin.exe
  18. set "launcher=%Game%\..\lol.launcher.admin.exe"
  19.  
  20. if exist "%launcher%" goto change
  21. echo Couldn't read the path correctly. Use the other Batchcodes and set your LOL directory by yourself.
  22. goto end
  23.  
  24. :change
  25. ::What to do if the path is correct.
  26.  
  27. if exist "%Game%\..\eu" goto eu else na
  28.  
  29. :na
  30. set client=na
  31. set clientC=NA
  32. set locale=us
  33. echo "yurp" > "%Game%\..\eu"
  34. goto sup
  35. :eu
  36. set client=eu
  37. set clientC=EU
  38. set locale=gb
  39. del "%Game%\..\eu"
  40. goto sup
  41.  
  42. :sup
  43. echo gameProject=lol_game_client_sln > "%Game%\system\launcher.cfg"
  44. echo airProject=lol_air_client >> "%Game%\system\launcher.cfg"
  45. echo airConfigProject=lol_air_client_config_%client% >> "%Game%\system\launcher.cfg"
  46.  
  47. echo locale=en_%locale% > "%Game%\system\locale.cfg"
  48.  
  49. echo DownloadURL=l3cdn.riotgames.com > "%Game%\system\system.cfg"
  50. echo DownloadPath=/releases/live >> "%Game%\system\system.cfg"
  51. echo Region=%clientC% >> "%Game%\system\system.cfg"
  52.  
  53. "%Game%/../lol.launcher.exe"
  54.  
  55. echo "%clientC%"
  56. pause
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement