mirror of
https://github.com/SantaSpeen/BeamMP-Server.git
synced 2025-08-18 11:05:37 +00:00
minor adjustments
This commit is contained in:
parent
375c4a4952
commit
ff2d5d74ae
@ -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){
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user