mirror of
https://github.com/BeamMP/BeamMP-Launcher.git
synced 2026-04-05 23:36:09 +00:00
Launcher update to 1.63.5
- async tcp buffer - two way encryption on connect - map security fix - DNS Lookup on connect - fixed bug in beamng security
This commit is contained in:
@@ -23,7 +23,12 @@ std::string LoadedMap(HANDLE processHandle, long long Address){
|
||||
std::vector<int> Off = {0x140,0x0};
|
||||
return Game.ReadPointerText(processHandle,Address,Off);
|
||||
}
|
||||
|
||||
std::string Tolower(std::string data){
|
||||
for(char&c : data){
|
||||
c = char(tolower(c));
|
||||
}
|
||||
return data;
|
||||
}
|
||||
void MemoryInit(){
|
||||
if(Dev)return;
|
||||
Game.PID = GamePID;
|
||||
@@ -38,8 +43,10 @@ void MemoryInit(){
|
||||
std::string Map,Temp;
|
||||
while(true){
|
||||
Map = LoadedMap(processHandle,Lib1);
|
||||
if(!Map.empty() && Map != "-1" && Map.find("/info.json") != std::string::npos && Map != Temp){
|
||||
if(MStatus.find(Map) == std::string::npos)exit(5);
|
||||
if(!Map.empty() && Map != "-1" && Map.find("/info.json") != -1 && Map != Temp){
|
||||
if(Tolower(MStatus).find(Tolower(Map)) == -1){
|
||||
exit(5);
|
||||
}
|
||||
Temp = Map;
|
||||
}
|
||||
Map.clear();
|
||||
|
||||
Reference in New Issue
Block a user