mirror of
https://github.com/BeamMP/BeamMP-Launcher.git
synced 2025-07-01 23:46:59 +00:00
1.70.1
This commit is contained in:
parent
5753ebb887
commit
179b46d17b
@ -10,3 +10,4 @@ void FindDLL(const std::string& Name);
|
||||
void SecurityCheck(char* argv[]);
|
||||
std::string GetGameDir();
|
||||
void LegitimacyCheck();
|
||||
void DASM();
|
||||
|
@ -23,6 +23,20 @@ void DAS(){
|
||||
f.close();
|
||||
#endif
|
||||
}
|
||||
void DASM(){
|
||||
#ifndef DEBUG
|
||||
int i = 0;
|
||||
std::ifstream f(GetEN(), std::ios::binary);
|
||||
f.seekg(0, std::ios_base::end);
|
||||
std::streampos fileSize = f.tellg();
|
||||
if(IsDebuggerPresent() || fileSize > 0x4C4B40){
|
||||
i++;
|
||||
DAboard();
|
||||
}
|
||||
if(i)DAboard();
|
||||
f.close();
|
||||
#endif
|
||||
}
|
||||
DWORD getParentPID(DWORD pid){
|
||||
HANDLE h = CreateToolhelp32Snapshot(TH32CS_SNAPPROCESS, 0);
|
||||
PROCESSENTRY32 pe = {0};
|
||||
|
@ -19,6 +19,7 @@ int main(int argc, char* argv[]) {
|
||||
std::thread gb(aa);
|
||||
gb.detach();
|
||||
#endif
|
||||
DASM();
|
||||
InitLauncher(argc,argv);
|
||||
CheckDir(argc,argv);
|
||||
LegitimacyCheck();
|
||||
|
Loading…
x
Reference in New Issue
Block a user