From baba0ad026a1ae338ea364d05b63f7dae81cbd1f Mon Sep 17 00:00:00 2001 From: Tixx <83774803+WiserTixx@users.noreply.github.com> Date: Sat, 7 Jun 2025 17:50:20 +0200 Subject: [PATCH] Check if unpacked BeamMP has a .git folder before deleting it --- src/Startup.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Startup.cpp b/src/Startup.cpp index 37ce0fb..bb6536a 100644 --- a/src/Startup.cpp +++ b/src/Startup.cpp @@ -341,7 +341,7 @@ void PreGame(const std::string& GamePath) { std::string Target(GetGamePath() + "mods/unpacked/beammp"); - if (fs::is_directory(Target)) { + if (fs::is_directory(Target) && !fs::is_directory(Target + "/.git")) { fs::remove_all(Target); } }