Skip to content

Commit

Permalink
- remove redundant calls
Browse files Browse the repository at this point in the history
  • Loading branch information
Anonymous-275 committed Sep 1, 2023
1 parent 5d1aee9 commit 9bfaed4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Network/Update.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 9bfaed4

Please sign in to comment.