From 187ef3b24ff9276555f7279c456ad8d279e69aa0 Mon Sep 17 00:00:00 2001 From: Tixx <83774803+WiserTixx@users.noreply.github.com> Date: Tue, 27 May 2025 22:09:52 +0200 Subject: [PATCH] Show cached mods being loaded in download progress --- src/Network/Resources.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/Network/Resources.cpp b/src/Network/Resources.cpp index 2682da4..4415db2 100644 --- a/src/Network/Resources.cpp +++ b/src/Network/Resources.cpp @@ -488,6 +488,7 @@ void NewSyncResources(SOCKET Sock, const std::string& Mods, const std::vectorHash) { debug("Mod '" + FileName + "' found in cache"); + UpdateUl(false, std::to_string(ModNo) + "/" + std::to_string(TotalMods) + ": " + ModInfoIter->FileName); std::this_thread::sleep_for(std::chrono::milliseconds(50)); try { if (!fs::exists(GetGamePath() + "mods/multiplayer")) { @@ -518,6 +519,7 @@ void NewSyncResources(SOCKET Sock, const std::string& Mods, const std::vectorFileName).filename(); fs::exists(OldCachedPath) && GetSha256HashReallyFast(OldCachedPath.string()) == ModInfoIter->Hash) { debug("Mod '" + FileName + "' found in old cache, copying it to the new cache"); + UpdateUl(false, std::to_string(ModNo) + "/" + std::to_string(TotalMods) + ": " + ModInfoIter->FileName); std::this_thread::sleep_for(std::chrono::milliseconds(50)); try { fs::copy_file(OldCachedPath, PathToSaveTo, fs::copy_options::overwrite_existing);