mirror of
https://github.com/BeamMP/BeamMP-Launcher.git
synced 2026-10-26 14:10:08 +00:00
Check if BeamMP.zip exists before hashing
This commit is contained in:
1 file changed
+1
-1
+1
-1
@@ -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);
|
||||||
|
|||||||
Reference in new issue
Block a user