Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @echo off
- REM set client=na
- REM set clientC=NA
- REM set locale=us
- set client=eu
- set clientC=EU
- set locale=gb
- if exist %windir%\SysWOW64\NUL goto software_64bit else goto software_32bit
- :software_32bit
- ::echo 32bit
- FOR /F "tokens=2*" %%A IN ('REG QUERY "HKLM\SOFTWARE\Riot Games\RADS" /v LocalRootFolder') DO SET Game=%%B
- goto check
- :software_64bit
- ::echo 64bit
- FOR /F "tokens=2*" %%A IN ('REG QUERY "HKLM\SOFTWARE\Wow6432Node\Riot Games\RADS" /v LocalRootFolder') DO SET Game=%%B
- :check
- ::%Game% = Path to RADS directory
- ::%launcher% = Path to lol.launcher.admin.exe
- set "launcher=%Game%\..\lol.launcher.admin.exe"
- if exist "%launcher%" goto change
- echo Couldn't read the path correctly. Use the other Batchcodes and set your LOL directory by yourself.
- goto end
- :change
- ::What to do if the path is correct.
- echo gameProject=lol_game_client_sln > "%Game%\system\launcher.cfg"
- echo airProject=lol_air_client >> "%Game%\system\launcher.cfg"
- echo airConfigProject=lol_air_client_config_%client% >> "%Game%\system\launcher.cfg"
- echo locale=en_%locale% > "%Game%\system\locale.cfg"
- echo DownloadURL=l3cdn.riotgames.com > "%Game%\system\system.cfg"
- echo DownloadPath=/releases/live >> "%Game%\system\system.cfg"
- echo Region=%clientC% >> "%Game%\system\system.cfg"
- "%Game%/../lol.launcher.exe"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement