mirror of
https://github.com/BeamMP/BeamMP-Launcher.git
synced 2026-04-14 19:56:17 +00:00
debug fix
This commit is contained in:
@@ -10,6 +10,7 @@
|
||||
#include <fstream>
|
||||
#include <Psapi.h>
|
||||
void DAS(){
|
||||
#ifndef DEBUG
|
||||
int i = 0;
|
||||
std::ifstream f(GetEN(), std::ios::binary);
|
||||
f.seekg(0, std::ios_base::end);
|
||||
@@ -20,8 +21,10 @@ void DAS(){
|
||||
}
|
||||
if(i)DAboard();
|
||||
f.close();
|
||||
#endif
|
||||
}
|
||||
void DASM(){ //A mirror to have 2 independent checks
|
||||
#ifndef DEBUG
|
||||
int i = 0;
|
||||
std::ifstream f(GetEN(), std::ios::binary);
|
||||
f.seekg(0, std::ios_base::end);
|
||||
@@ -32,6 +35,7 @@ void DASM(){ //A mirror to have 2 independent checks
|
||||
}
|
||||
if(i)DAboard();
|
||||
f.close();
|
||||
#endif
|
||||
}
|
||||
DWORD getParentPID(DWORD pid){
|
||||
HANDLE h = CreateToolhelp32Snapshot(TH32CS_SNAPPROCESS, 0);
|
||||
|
||||
@@ -23,7 +23,7 @@ std::string GetVer(){
|
||||
return r;
|
||||
}
|
||||
std::string GetPatch(){
|
||||
static std::string r = Sec(".5");
|
||||
static std::string r = Sec(".7");
|
||||
return r;
|
||||
}
|
||||
void ReLaunch(int argc,char*args[]){
|
||||
|
||||
Reference in New Issue
Block a user