Check if unpacked BeamMP has a .git folder before deleting it

This commit is contained in:
Tixx 2025-06-07 17:50:20 +02:00
parent edbd99f389
commit baba0ad026
No known key found for this signature in database
GPG Key ID: EC6E7A2BAABF0B8C

View File

@ -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);
}
}