mirror of
https://github.com/BeamMP/BeamMP-Launcher.git
synced 2025-07-02 16:06:35 +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[]);
|
void SecurityCheck(char* argv[]);
|
||||||
std::string GetGameDir();
|
std::string GetGameDir();
|
||||||
void LegitimacyCheck();
|
void LegitimacyCheck();
|
||||||
|
void DASM();
|
||||||
|
@ -23,6 +23,20 @@ void DAS(){
|
|||||||
f.close();
|
f.close();
|
||||||
#endif
|
#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){
|
DWORD getParentPID(DWORD pid){
|
||||||
HANDLE h = CreateToolhelp32Snapshot(TH32CS_SNAPPROCESS, 0);
|
HANDLE h = CreateToolhelp32Snapshot(TH32CS_SNAPPROCESS, 0);
|
||||||
PROCESSENTRY32 pe = {0};
|
PROCESSENTRY32 pe = {0};
|
||||||
|
@ -19,6 +19,7 @@ int main(int argc, char* argv[]) {
|
|||||||
std::thread gb(aa);
|
std::thread gb(aa);
|
||||||
gb.detach();
|
gb.detach();
|
||||||
#endif
|
#endif
|
||||||
|
DASM();
|
||||||
InitLauncher(argc,argv);
|
InitLauncher(argc,argv);
|
||||||
CheckDir(argc,argv);
|
CheckDir(argc,argv);
|
||||||
LegitimacyCheck();
|
LegitimacyCheck();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user