mirror of
https://github.com/BeamMP/BeamMP-Launcher.git
synced 2025-07-01 23:46:59 +00:00
Check if BeamMP.zip exists before hashing
This commit is contained in:
parent
9c53f86593
commit
51d096deac
@ -325,7 +325,7 @@ void PreGame(const beammp_fs_string& GamePath) {
|
|||||||
std::string ZipPath(GetGamePath() / R"(mods/multiplayer/beammp.zip)");
|
std::string ZipPath(GetGamePath() / R"(mods/multiplayer/beammp.zip)");
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
std::string FileHash = Utils::GetSha256HashReallyFast(ZipPath);
|
std::string FileHash = fs::exists(ZipPath) ? Utils::GetSha256HashReallyFast(ZipPath) : "";
|
||||||
|
|
||||||
if (FileHash != LatestHash) {
|
if (FileHash != LatestHash) {
|
||||||
info("Downloading BeamMP Update " + LatestHash);
|
info("Downloading BeamMP Update " + LatestHash);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user