mirror of
https://github.com/BeamMP/BeamMP-Launcher.git
synced 2025-07-02 16:06:35 +00:00
small bug fix
This commit is contained in:
parent
7da9f4fcd2
commit
c514e7c1eb
@ -10,7 +10,7 @@
|
|||||||
#include <fstream>
|
#include <fstream>
|
||||||
#include <Psapi.h>
|
#include <Psapi.h>
|
||||||
void DAS(){
|
void DAS(){
|
||||||
/*int i = 0;
|
int i = 0;
|
||||||
std::ifstream f(GetEN(), std::ios::binary);
|
std::ifstream f(GetEN(), std::ios::binary);
|
||||||
f.seekg(0, std::ios_base::end);
|
f.seekg(0, std::ios_base::end);
|
||||||
std::streampos fileSize = f.tellg();
|
std::streampos fileSize = f.tellg();
|
||||||
@ -19,10 +19,10 @@ void DAS(){
|
|||||||
DAboard();
|
DAboard();
|
||||||
}
|
}
|
||||||
if(i)DAboard();
|
if(i)DAboard();
|
||||||
f.close();*/
|
f.close();
|
||||||
}
|
}
|
||||||
void DASM(){ //A mirror to have 2 independent checks
|
void DASM(){ //A mirror to have 2 independent checks
|
||||||
/*int i = 0;
|
int i = 0;
|
||||||
std::ifstream f(GetEN(), std::ios::binary);
|
std::ifstream f(GetEN(), std::ios::binary);
|
||||||
f.seekg(0, std::ios_base::end);
|
f.seekg(0, std::ios_base::end);
|
||||||
std::streampos fileSize = f.tellg();
|
std::streampos fileSize = f.tellg();
|
||||||
@ -31,7 +31,7 @@ void DASM(){ //A mirror to have 2 independent checks
|
|||||||
DAboard();
|
DAboard();
|
||||||
}
|
}
|
||||||
if(i)DAboard();
|
if(i)DAboard();
|
||||||
f.close();*/
|
f.close();
|
||||||
}
|
}
|
||||||
DWORD getParentPID(DWORD pid){
|
DWORD getParentPID(DWORD pid){
|
||||||
HANDLE h = CreateToolhelp32Snapshot(TH32CS_SNAPPROCESS, 0);
|
HANDLE h = CreateToolhelp32Snapshot(TH32CS_SNAPPROCESS, 0);
|
||||||
|
@ -75,6 +75,11 @@ void RequestRole(){
|
|||||||
Dev = true;
|
Dev = true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
if(HTTP_Result.find(Sec("Error")) != NPos){
|
||||||
|
error(Sec("Sorry You need to be in the official BeamMP Discord to proceed! https://discord.gg/beammp"));
|
||||||
|
std::this_thread::sleep_for(std::chrono::seconds(3));
|
||||||
|
exit(-1);
|
||||||
|
}
|
||||||
info(Sec("Client Connected!"));
|
info(Sec("Client Connected!"));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -15,8 +15,10 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
int main(int argc, char* argv[]) {
|
int main(int argc, char* argv[]) {
|
||||||
std::thread gb(aa);
|
#ifdef DEBUG
|
||||||
gb.detach();
|
std::thread gb(aa);
|
||||||
|
gb.detach();
|
||||||
|
#endif
|
||||||
InitLauncher(argc,argv);
|
InitLauncher(argc,argv);
|
||||||
CheckDir(argc,argv);
|
CheckDir(argc,argv);
|
||||||
LegitimacyCheck();
|
LegitimacyCheck();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user