mirror of
https://github.com/BeamMP/BeamMP-Launcher.git
synced 2025-07-04 00:47:23 +00:00
Merge pull request #3 from finicu212/patch-1
Close #2: Alert user of what malicious file has been found
This commit is contained in:
commit
00313e32f9
@ -255,7 +255,11 @@ void LegitimacyCheck(){
|
|||||||
|
|
||||||
if(fs::exists(Result)){
|
if(fs::exists(Result)){
|
||||||
if(!Find("284160.json",Result))Exit(2);
|
if(!Find("284160.json",Result))Exit(2);
|
||||||
if(FindHack(Result))SteamExit(1);
|
if(FindHack(Result)) {
|
||||||
|
std::string maliciousFileName = fs::directory_iterator(Result)->path().filename().string();
|
||||||
|
error("Found malicious file " + maliciousFileName + ". Please remove it in order to play\n");
|
||||||
|
SteamExit(1);
|
||||||
|
}
|
||||||
}else Exit(3);
|
}else Exit(3);
|
||||||
|
|
||||||
T = Result;
|
T = Result;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user