This commit is contained in:
Anonymous275
2020-12-27 05:50:51 +02:00
parent e207f2febd
commit 9734a7f3d5
2 changed files with 4 additions and 7 deletions

View File

@@ -257,7 +257,7 @@ void SyncResources(SOCKET Sock){
std::this_thread::sleep_for(std::chrono::milliseconds(50));
try {
if(!fs::exists(GetGamePath() + "mods/multiplayer")){
fs::create_directory(GetGamePath() + "mods/multiplayer");
fs::create_directories(GetGamePath() + "mods/multiplayer");
}
fs::copy_file(a, GetGamePath() + "mods/multiplayer" + a.substr(a.find_last_of('/')),
fs::copy_options::overwrite_existing);
@@ -298,7 +298,7 @@ void SyncResources(SOCKET Sock){
}while(fs::file_size(a) != std::stoull(*FS) && !Terminate);
if(!Terminate){
if(!fs::exists(GetGamePath() + "mods/multiplayer")){
fs::create_directory(GetGamePath() + "mods/multiplayer");
fs::create_directories(GetGamePath() + "mods/multiplayer");
}
fs::copy_file(a,GetGamePath() + "mods/multiplayer" + FName, fs::copy_options::overwrite_existing);
}

View File

@@ -27,7 +27,7 @@ std::string GetVer(){
return "1.80";
}
std::string GetPatch(){
return ".5";
return ".6";
}
void ReLaunch(int argc,char*args[]){
std::string Arg;
@@ -194,11 +194,8 @@ void PreGame(const std::string& GamePath){
if(!Dev) {
info("Downloading mod...");
try {
if (!fs::exists(GetGamePath() + "mods")) {
fs::create_directory(GetGamePath() + "mods");
}
if (!fs::exists(GetGamePath() + "mods/multiplayer")) {
fs::create_directory(GetGamePath() + "mods/multiplayer");
fs::create_directories(GetGamePath() + "mods/multiplayer");
}
}catch(std::exception&e){
fatal(e.what());