diff --git a/src/Network/Resources.cpp b/src/Network/Resources.cpp index a025063..1fe99fc 100644 --- a/src/Network/Resources.cpp +++ b/src/Network/Resources.cpp @@ -573,6 +573,13 @@ void NewSyncResources(SOCKET Sock, const std::string& Mods, const std::vector DownloadedFile = SingleNormalDownload(Sock, ModInfoIter->FileSize, Name); @@ -587,11 +594,16 @@ void NewSyncResources(SOCKET Sock, const std::string& Mods, const std::vectorHash) { + error("Failed to write or download the entire file '" + PathToSaveTo + "' correctly (hash mismatch)"); + Terminate = true; + } } while (fs::file_size(PathToSaveTo) != ModInfoIter->FileSize && !Terminate); if (!Terminate) { if (!fs::exists(GetGamePath() + "mods/multiplayer")) {