From 51d096deacc2e59a9cb0152dadbd4d00ba101f99 Mon Sep 17 00:00:00 2001 From: Tixx <83774803+WiserTixx@users.noreply.github.com> Date: Sun, 8 Jun 2025 14:01:48 +0200 Subject: [PATCH] Check if BeamMP.zip exists before hashing --- src/Startup.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Startup.cpp b/src/Startup.cpp index f6f95c5..d74763d 100644 --- a/src/Startup.cpp +++ b/src/Startup.cpp @@ -325,7 +325,7 @@ void PreGame(const beammp_fs_string& GamePath) { std::string ZipPath(GetGamePath() / R"(mods/multiplayer/beammp.zip)"); #endif - std::string FileHash = Utils::GetSha256HashReallyFast(ZipPath); + std::string FileHash = fs::exists(ZipPath) ? Utils::GetSha256HashReallyFast(ZipPath) : ""; if (FileHash != LatestHash) { info("Downloading BeamMP Update " + LatestHash);