mirror of
https://github.com/BeamMP/BeamMP-Launcher.git
synced 2026-04-04 23:06:25 +00:00
- IPC Uses PID to identify the process
- Exception code now shows in hex capitals - Fixed version checking and bumped the version support - Added process blacklist for already injected game detection - Used std::all_of instead of std::string::find for digit checks
This commit is contained in:
@@ -69,7 +69,7 @@ std::string Server::Auth() {
|
||||
}
|
||||
|
||||
Res = Res.substr(1);
|
||||
if(Res.find_first_not_of("0123456789") == std::string::npos){
|
||||
if(std::all_of(Res.begin(), Res.end(), isdigit)){
|
||||
ClientID = std::stoi(Res);
|
||||
}else{
|
||||
Abort();
|
||||
@@ -253,7 +253,7 @@ void Server::SyncResources() {
|
||||
} else continue;
|
||||
Pos++;
|
||||
if (fs::exists(a)) {
|
||||
if (FS->find_first_not_of("0123456789") != std::string::npos)continue;
|
||||
if (!std::all_of(FS->begin(), FS->end(), isdigit))continue;
|
||||
if (fs::file_size(a) == std::stoull(*FS)){
|
||||
UpdateUl(false,std::to_string(Pos) + "/" + std::to_string(Amount) + ": " + a.substr(a.find_last_of('/')));
|
||||
std::this_thread::sleep_for(std::chrono::milliseconds(50));
|
||||
|
||||
Reference in New Issue
Block a user