mirror of
https://github.com/BeamMP/BeamMP-Launcher.git
synced 2025-07-01 23:46:59 +00:00
make mods not keep the hash when copying them
This commit is contained in:
parent
ad468a8971
commit
1676d4174e
@ -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) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user