make mods not keep the hash when copying them

This commit is contained in:
Lion Kortlepel 2024-09-29 02:36:41 +02:00
parent ad468a8971
commit 1676d4174e
No known key found for this signature in database
GPG Key ID: 4322FF2B4C71259B

View File

@ -399,8 +399,7 @@ void NewSyncResources(SOCKET Sock, const std::string& Mods, const std::vector<Mo
std::string t;
for (const auto& mod : ModInfos) {
auto FileName = std::filesystem::path(mod.FileName).stem().string() + "-" + mod.Hash.substr(0, 8) + std::filesystem::path(mod.FileName).extension().string();
t += FileName + ";";
t += mod.FileName + ";";
}
if (t.empty())
@ -428,7 +427,7 @@ void NewSyncResources(SOCKET Sock, const std::string& Mods, const std::vector<Mo
if (!fs::exists(GetGamePath() + "mods/multiplayer")) {
fs::create_directories(GetGamePath() + "mods/multiplayer");
}
auto modname = FileName;
auto modname = ModInfoIter->FileName;
#if defined(__linux__)
// Linux version of the game doesnt support uppercase letters in mod names
for (char& c : modname) {