- remove redundant calls

This commit is contained in:
Anonymous-275 2023-09-02 00:56:46 +01:00
parent 5d1aee98a1
commit 9bfaed4d3a

View File

@ -120,8 +120,8 @@ void Launcher::UpdateCheck() {
if(FileHash != LatestHash && VersionParser(LatestVersion) > VersionParser(FullVersion)) {
LOG(INFO) << "Launcher update found!";
fs::remove((CurrentPath/"BeamMP-Launcher.back").string());
fs::rename((CurrentPath/"BeamMP-Launcher.exe").string(), (CurrentPath/"BeamMP-Launcher.back").string());
fs::remove(CurrentPath/"BeamMP-Launcher.back");
fs::rename(CurrentPath/"BeamMP-Launcher.exe", CurrentPath/"BeamMP-Launcher.back");
LOG(INFO) << "Downloading Launcher update " << LatestHash;
HTTP::Download(
"https://backend.beammp.com/builds/launcher?download=true"