forked from Nisalon/IntWars
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
So it should work on the newest league version
- Loading branch information
Ben
committed
Jul 17, 2014
1 parent
f022c2d
commit 8cef985
Showing
34 changed files
with
1,236 additions
and
209 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,136 @@ | ||
@echo off | ||
setlocal enabledelayedexpansion | ||
echo ----------------------- | ||
echo IntWars Solo Launcher | ||
echo ----------------------- | ||
set RADS_PATH= | ||
echo =================== | ||
echo Finding other LoL directory path.. | ||
echo =================== | ||
FOR /f "usebackq skip=2 tokens=3,4,5,6,7,8,9" %%i in (`%systemroot%\system32\REG.EXE QUERY "HKCU\SOFTWARE\RIOT GAMES\RADS" /v "LOCALROOTFOLDER"`) DO ( | ||
SET RADS_PATH=%%i %%j %%k %%l %%m %%n %%o | ||
goto runApp | ||
) | ||
cls | ||
echo =================== | ||
echo Finding other LoL directory path.. | ||
echo =================== | ||
FOR /f "usebackq skip=2 tokens=3,4,5,6,7,8,9" %%i in (`%systemroot%\system32\REG.EXE QUERY "HKCU\SOFTWARE\Classes\VirtualStore\MACHINE\SOFTWARE\Wow6432Node\RIOT GAMES\RADS" /v "LOCALROOTFOLDER"`) DO ( | ||
SET RADS_PATH=%%i %%j %%k %%l %%m %%n %%o | ||
goto runApp | ||
) | ||
cls | ||
echo =================== | ||
echo Finding other LoL directory path.. | ||
echo =================== | ||
FOR /f "usebackq skip=2 tokens=3,4,5,6,7,8,9" %%i in (`%systemroot%\system32\REG.EXE QUERY "HKCU\SOFTWARE\Classes\VirtualStore\MACHINE\SOFTWARE\RIOT GAMES\RADS" /v "LOCALROOTFOLDER"`) DO ( | ||
SET RADS_PATH=%%i %%j %%k %%l %%m %%n %%o | ||
goto runApp | ||
) | ||
cls | ||
echo =================== | ||
echo Finding other LoL directory path.. | ||
echo =================== | ||
FOR /f "usebackq skip=2 tokens=3,4,5,6,7,8,9" %%i in (`%systemroot%\system32\REG.EXE QUERY "HKLM\Software\Wow6432Node\Riot Games\RADS" /v "LOCALROOTFOLDER"`) DO ( | ||
SET RADS_PATH=%%i %%j %%k %%l %%m %%n %%o | ||
goto runApp | ||
) | ||
cls | ||
echo =================== | ||
echo Finding other LoL directory path.. | ||
echo =================== | ||
FOR /f "usebackq skip=2 tokens=3,4,5,6,7,8,9" %%i in (`%systemroot%\system32\REG.EXE QUERY "HKLM\Software\Wow6432Node\Riot Games\RADS" /v "LOCALROOTFOLDER"`) DO ( | ||
SET RADS_PATH=%%i %%j %%k %%l %%m %%n %%o | ||
goto runApp | ||
) | ||
cls | ||
echo =================== | ||
echo Finding other LoL directory path.. | ||
echo =================== | ||
FOR /f "usebackq skip=2 tokens=3,4,5,6,7,8,9" %%i in (`%systemroot%\system32\REG.EXE QUERY "HKCU\SOFTWARE\RIOT GAMES\RADS" /v "LOCALROOTFOLDER"`) DO ( | ||
SET RADS_PATH=%%i %%j %%k %%l %%m %%n %%o | ||
goto runApp | ||
) | ||
cls | ||
echo =================== | ||
echo Finding other LoL directory path.. | ||
echo =================== | ||
FOR /f "usebackq skip=2 tokens=3,4,5,6,7,8,9" %%i in (`%systemroot%\system32\REG.EXE QUERY "HKLM\SOFTWARE\RIOT GAMES\RADS" /v "LOCALROOTFOLDER"`) DO ( | ||
SET RADS_PATH=%%i %%j %%k %%l %%m %%n %%o | ||
goto runApp | ||
) | ||
cls | ||
echo =================== | ||
echo Finding other LoL directory path.. | ||
echo =================== | ||
for /f "Tokens=3,4,5,6,7,8,9,10,11,12,13,14,15" %%a in ('%systemroot%\system32\REG.EXE Query HKLM\Software /V /F "LocalRootFolder" /S /E ^| %systemroot%\system32\find.exe "RADS"') do ( | ||
set RADS_PATH=%%a %%b %%c %%d %%e %%f %%g %%h %%i %%j %%k %%l %%m | ||
goto runApp | ||
) | ||
cls | ||
echo =================== | ||
echo Finding another LoL directory path.. | ||
echo =================== | ||
for /f "Tokens=3,4,5,6,7,8,9,10,11,12,13,14,15" %%a in ('%systemroot%\system32\REG.EXE Query HKLM\Software /s ^| %systemroot%\system32\find.exe "LocalRootFolder" ^| %systemroot%\system32\find.exe "RADS"') do ( | ||
set RADS_PATH=%%a %%b %%c %%d %%e %%f %%g %%h %%i %%j %%k %%l %%m | ||
goto runApp | ||
) | ||
cls | ||
echo =================== | ||
echo Finding another LoL directory path.. | ||
echo =================== | ||
for /f "Tokens=3,4,5,6,7,8,9,10,11,12,13,14,15" %%a in ('%systemroot%\system32\REG.EXE Query HKCU\Software /V /F "LocalRootFolder" /S /E ^| %systemroot%\system32\find.exe "RADS"') do ( | ||
set RADS_PATH=%%a %%b %%c %%d %%e %%f %%g %%h %%i %%j %%k %%l %%m | ||
goto runApp | ||
) | ||
cls | ||
echo =================== | ||
echo Finding another LoL directory path again.. | ||
echo =================== | ||
for /f "Tokens=3,4,5,6,7,8,9,10,11,12,13,14,15" %%a in ('%systemroot%\system32\REG.EXE Query HKCU\Software /s ^| %systemroot%\system32\find.exe "LocalRootFolder" ^| %systemroot%\system32\find.exe "RADS"') do ( | ||
set RADS_PATH=%%a %%b %%c %%d %%e %%f %%g %%h %%i %%j %%k %%l %%m | ||
goto runApp | ||
) | ||
cls | ||
goto cannotFind | ||
:runApp | ||
set RADS_PATH=%RADS_PATH:/=\% | ||
@cd /d "%RADS_PATH%\solutions\lol_game_client_sln\releases" | ||
|
||
set init=0 | ||
set v0=0&set v1=0&set v2=0&set v3=0 | ||
for /f "delims=" %%F in ('dir * /b ^| findstr ^[0-9]*\.[0-9]*\.[0-9]*\.[0-9]*$') do ( | ||
for /F "tokens=1,2,3,4 delims=." %%i in ("%%F") do ( | ||
if !init! equ 0 ( set init=1&set flag=1 ) else ( | ||
set flag=0 | ||
|
||
if %%i gtr !v0! ( set flag=1 ) else ( | ||
if %%j gtr !v1! ( set flag=1 ) else ( | ||
if %%k gtr !v2! ( set flag=1 ) else ( | ||
if %%l gtr !v3! ( set flag=1 ) | ||
) | ||
) | ||
) | ||
) | ||
|
||
if !flag! gtr 0 ( | ||
set v0=%%i&set v1=%%j&set v2=%%k&set v3=%%l | ||
) | ||
) | ||
) | ||
|
||
if !init! equ 0 goto cannotFind | ||
set lolver=!v0!.!v1!.!v2!.!v3! | ||
|
||
@cd /d "!RADS_PATH!\solutions\lol_game_client_sln\releases\!lolver!\deploy" | ||
if exist "League of Legends.exe" ( | ||
@start "" "League of Legends.exe" "8394" "LoLLauncher.exe" "" "127.0.0.1 5119 17BLOhi6KZsTtldTsizvHg== 47917791" | ||
goto exit | ||
) | ||
:cannotFind | ||
echo =================== | ||
echo Cannot find LoL path automatically :( | ||
echo =================== | ||
@pause | ||
goto exit | ||
:exit |
Empty file.
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,75 @@ | ||
/* | ||
IntWars playground server for League of Legends protocol testing | ||
Copyright (C) 2012 Intline9 <Intline9@gmail.com> | ||
This program is free software: you can redistribute it and/or modify | ||
it under the terms of the GNU General Public License as published by | ||
the Free Software Foundation, either version 3 of the License, or | ||
(at your option) any later version. | ||
This program is distributed in the hope that it will be useful, | ||
but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
GNU General Public License for more details. | ||
You should have received a copy of the GNU General Public License | ||
along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
*/ | ||
#include "stdafx.h" | ||
#include "Client.h" | ||
|
||
ClientInfo::ClientInfo() | ||
{ | ||
keyChecked = false; | ||
name = type = NULL; | ||
ticks = 0; | ||
skinNo = 0; | ||
} | ||
|
||
ClientInfo::~ClientInfo() | ||
{ | ||
if(name != NULL) | ||
delete[] name; | ||
if(type != NULL) | ||
delete[] type; | ||
} | ||
|
||
void ClientInfo::setName(char *name) | ||
{ | ||
if(this->name != NULL) | ||
delete[] this->name; | ||
|
||
nameLen = strlen(name); | ||
this->name = new int8[nameLen+1]; | ||
memcpy(this->name, name, nameLen+1); | ||
} | ||
|
||
void ClientInfo::setType(char *type) | ||
{ | ||
if(this->type != NULL) | ||
delete[] this->type; | ||
|
||
typeLen = strlen(type); | ||
this->type = new int8[typeLen+1]; | ||
memcpy(this->type, type, typeLen+1); | ||
} | ||
|
||
uint32 ClientInfo::getTicks() | ||
{ | ||
ticks++; | ||
return ticks; | ||
} | ||
|
||
LoadScreenPlayer* ClientInfo::GetLoadScreenPlayerName() | ||
{ | ||
LoadScreenPlayer* p = LoadScreenPlayer::create(PKT_S2C_LoadName, name, nameLen); | ||
p->userId = userId; | ||
return p; | ||
} | ||
LoadScreenPlayer* ClientInfo::GetLoadScreenPlayerHero() | ||
{ | ||
LoadScreenPlayer* p = LoadScreenPlayer::create(PKT_S2C_LoadHero, type, typeLen); | ||
p->userId = userId; | ||
p->skinId = skinNo; | ||
return p; | ||
} |
Oops, something went wrong.