mirror of
https://github.com/BeamMP/BeamMP-Launcher.git
synced 2026-04-08 16:56:22 +00:00
Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
9d20b678f9 | ||
|
|
be7594039e |
@@ -87,7 +87,7 @@ std::string GetVer() {
|
|||||||
return "2.6";
|
return "2.6";
|
||||||
}
|
}
|
||||||
std::string GetPatch() {
|
std::string GetPatch() {
|
||||||
return ".0";
|
return ".1";
|
||||||
}
|
}
|
||||||
|
|
||||||
beammp_fs_string GetEP(const beammp_fs_char* P) {
|
beammp_fs_string GetEP(const beammp_fs_char* P) {
|
||||||
@@ -215,7 +215,7 @@ void CheckForUpdates(const std::string& CV) {
|
|||||||
"https://backend.beammp.com/builds/launcher?download=true"
|
"https://backend.beammp.com/builds/launcher?download=true"
|
||||||
"&pk="
|
"&pk="
|
||||||
+ PublicKey + "&branch=" + Branch,
|
+ PublicKey + "&branch=" + Branch,
|
||||||
beammp_wide("new_") + BP, LatestHash);
|
GetBP() / (beammp_wide("new_") + GetEN()), LatestHash);
|
||||||
std::error_code ec;
|
std::error_code ec;
|
||||||
fs::remove(Back, ec);
|
fs::remove(Back, ec);
|
||||||
if (ec == std::errc::permission_denied) {
|
if (ec == std::errc::permission_denied) {
|
||||||
@@ -224,7 +224,7 @@ void CheckForUpdates(const std::string& CV) {
|
|||||||
} else {
|
} else {
|
||||||
fs::rename(BP, Back);
|
fs::rename(BP, Back);
|
||||||
}
|
}
|
||||||
fs::rename(beammp_wide("new_") + BP, BP);
|
fs::rename(GetBP() / (beammp_wide("new_") + GetEN()), BP);
|
||||||
URelaunch();
|
URelaunch();
|
||||||
#endif
|
#endif
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Reference in New Issue
Block a user