From be7594039e2b6f6163be366a5e283e55eae29d70 Mon Sep 17 00:00:00 2001 From: Tixx <83774803+WiserTixx@users.noreply.github.com> Date: Tue, 16 Sep 2025 17:52:30 +0200 Subject: [PATCH] Fix updating logic --- src/Startup.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Startup.cpp b/src/Startup.cpp index b2e10ee..8cfca2f 100644 --- a/src/Startup.cpp +++ b/src/Startup.cpp @@ -215,7 +215,7 @@ void CheckForUpdates(const std::string& CV) { "https://backend.beammp.com/builds/launcher?download=true" "&pk=" + PublicKey + "&branch=" + Branch, - beammp_wide("new_") + BP, LatestHash); + GetBP() / (beammp_wide("new_") + GetEN()), LatestHash); std::error_code ec; fs::remove(Back, ec); if (ec == std::errc::permission_denied) { @@ -224,7 +224,7 @@ void CheckForUpdates(const std::string& CV) { } else { fs::rename(BP, Back); } - fs::rename(beammp_wide("new_") + BP, BP); + fs::rename(GetBP() / (beammp_wide("new_") + GetEN()), BP); URelaunch(); #endif } else {