mirror of
https://github.com/BeamMP/BeamMP-Launcher.git
synced 2026-02-16 10:40:46 +00:00
- remove redundant calls
This commit is contained in:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user