minor adjustments

This commit is contained in:
Anonymous275 2020-05-27 10:24:23 +03:00
parent 375c4a4952
commit ff2d5d74ae
2 changed files with 6 additions and 7 deletions

View File

@ -12,16 +12,15 @@ std::string FileSizes;
void LuaMain(std::string Path);
void HandleResources(std::string path){
LuaMain(path);
struct stat info{};
if(stat( path.c_str(), &info) != 0){
fs::create_directory(path);
path += "/Client";
if(stat( path.c_str(), &info) != 0) {
fs::create_directory(path);
}
}
LuaMain(path);
path += "/Client";
if(stat( path.c_str(), &info) != 0) {
fs::create_directory(path);
}
for (const auto & entry : fs::directory_iterator(path)){
int pos = entry.path().string().find(".zip");
if(pos != std::string::npos){

View File

@ -39,7 +39,7 @@ void Heartbeat()
if(R.find_first_not_of("20") != std::string::npos){
//Backend system refused server startup!
error(HTA("4261636b656e642073797374656d20726566757365642073657276657221"));
std::this_thread::sleep_for(std::chrono::seconds(5));
std::this_thread::sleep_for(std::chrono::seconds(3));
exit(-1);
}
//Server Authenticated