Advertisement
RiCON

Untitled

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