You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

29 lines
481 B

#include "src/system/betatest.hpp"
#include <fstream>
#include <string>
bool checkBetaTest()
{
std::string betaFlag = "4re_Y0u_53ri0usly_checking_f0r_b3t4_t3sT?";
std::string tmp;
int result = -1;
try
{
std::fstream betaFile("beta.test");
if (betaFile) {
betaFile >> tmp;
result = tmp.compare("GKSK{" + betaFlag + "}");
}
}
catch(...)
{
return false;
}
return result == 0;
}