mirror of
https://github.com/BeamMP/BeamMP-Launcher.git
synced 2025-07-01 23:46:59 +00:00
- remove redundant calls
This commit is contained in:
parent
5d1aee98a1
commit
9bfaed4d3a
@ -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"
|
||||
|
Loading…
x
Reference in New Issue
Block a user