fix bug which caused user path to print multiple times

This commit is contained in:
Lion Kortlepel 2024-06-28 15:37:27 +02:00
parent ba35d039ae
commit 96d579f64b
No known key found for this signature in database
GPG Key ID: 4322FF2B4C71259B
2 changed files with 2 additions and 2 deletions

View File

@ -51,7 +51,6 @@ std::string GetGamePath() {
std::string Ver = CheckVer(GetGameDir());
Ver = Ver.substr(0, Ver.find('.', Ver.find('.') + 1));
Path += Ver + "\\";
info("Game user path: '" + Path + "'");
return Path;
}
#elif defined(__linux__)
@ -64,7 +63,6 @@ std::string GetGamePath() {
std::string Ver = CheckVer(GetGameDir());
Ver = Ver.substr(0, Ver.find('.', Ver.find('.') + 1));
Path += Ver + "/";
info("Game user path: '" + Path + "'");
return Path;
}
#endif

View File

@ -333,6 +333,8 @@ void PreGame(const std::string& GamePath) {
CheckMP(GetGamePath() + "mods/multiplayer");
info("Game user path: '" + GetGamePath() + "'");
if (!Dev) {
std::string LatestHash = HTTP::Get("https://backend.beammp.com/sha/mod?branch=" + Branch + "&pk=" + PublicKey);
transform(LatestHash.begin(), LatestHash.end(), LatestHash.begin(), ::tolower);