mirror of
https://github.com/BeamMP/BeamMP-Launcher.git
synced 2025-07-02 07:56:26 +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;
|
std::string t;
|
||||||
for (const auto& mod : ModInfos) {
|
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 += mod.FileName + ";";
|
||||||
t += FileName + ";";
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (t.empty())
|
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")) {
|
if (!fs::exists(GetGamePath() + "mods/multiplayer")) {
|
||||||
fs::create_directories(GetGamePath() + "mods/multiplayer");
|
fs::create_directories(GetGamePath() + "mods/multiplayer");
|
||||||
}
|
}
|
||||||
auto modname = FileName;
|
auto modname = ModInfoIter->FileName;
|
||||||
#if defined(__linux__)
|
#if defined(__linux__)
|
||||||
// Linux version of the game doesnt support uppercase letters in mod names
|
// Linux version of the game doesnt support uppercase letters in mod names
|
||||||
for (char& c : modname) {
|
for (char& c : modname) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user