mirror of
https://github.com/BeamMP/BeamMP-Server.git
synced 2026-06-17 22:23:03 +00:00
minor adjustments
This commit is contained in:
+5
-6
@@ -12,16 +12,15 @@ std::string FileSizes;
|
|||||||
|
|
||||||
void LuaMain(std::string Path);
|
void LuaMain(std::string Path);
|
||||||
void HandleResources(std::string path){
|
void HandleResources(std::string path){
|
||||||
LuaMain(path);
|
|
||||||
struct stat info{};
|
struct stat info{};
|
||||||
if(stat( path.c_str(), &info) != 0){
|
if(stat( path.c_str(), &info) != 0){
|
||||||
fs::create_directory(path);
|
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)){
|
for (const auto & entry : fs::directory_iterator(path)){
|
||||||
int pos = entry.path().string().find(".zip");
|
int pos = entry.path().string().find(".zip");
|
||||||
if(pos != std::string::npos){
|
if(pos != std::string::npos){
|
||||||
|
|||||||
+1
-1
@@ -39,7 +39,7 @@ void Heartbeat()
|
|||||||
if(R.find_first_not_of("20") != std::string::npos){
|
if(R.find_first_not_of("20") != std::string::npos){
|
||||||
//Backend system refused server startup!
|
//Backend system refused server startup!
|
||||||
error(HTA("4261636b656e642073797374656d20726566757365642073657276657221"));
|
error(HTA("4261636b656e642073797374656d20726566757365642073657276657221"));
|
||||||
std::this_thread::sleep_for(std::chrono::seconds(5));
|
std::this_thread::sleep_for(std::chrono::seconds(3));
|
||||||
exit(-1);
|
exit(-1);
|
||||||
}
|
}
|
||||||
//Server Authenticated
|
//Server Authenticated
|
||||||
|
|||||||
Reference in New Issue
Block a user