mirror of
https://github.com/BeamMP/BeamMP-Launcher.git
synced 2025-07-01 23:46:59 +00:00
spammed errors will not close the launcher
This commit is contained in:
parent
c517a48fa6
commit
b5fd281c8d
@ -66,12 +66,9 @@ void warn(const std::string& toPrint){
|
||||
addToLog(Print);
|
||||
}
|
||||
void error(const std::string& toPrint) {
|
||||
static int ECounter = 0;
|
||||
std::string Print = getDate() + Sec("[ERROR] ") + toPrint + "\n";
|
||||
std::cout << Print;
|
||||
addToLog(Print);
|
||||
if(ECounter > 10)exit(7);
|
||||
ECounter++;
|
||||
}
|
||||
void except(const std::string& toPrint) {
|
||||
std::string Print = getDate() + Sec("[EXCEP] ") + toPrint + "\n";
|
||||
|
@ -22,7 +22,7 @@ std::string GetVer(){
|
||||
return std::string(Sec("1.70"));
|
||||
}
|
||||
std::string GetPatch(){
|
||||
return std::string(Sec(".1"));
|
||||
return std::string(Sec(".2"));
|
||||
}
|
||||
void ReLaunch(int argc,char*args[]){
|
||||
std::string Arg;
|
||||
|
Loading…
x
Reference in New Issue
Block a user