mirror of
https://github.com/BeamMP/BeamMP-Launcher.git
synced 2026-10-25 21:50:02 +00:00
Check if unpacked BeamMP has a .git folder before deleting it
This commit is contained in:
1 file changed
+1
-1
+1
-1
@@ -341,7 +341,7 @@ void PreGame(const std::string& GamePath) {
|
|||||||
|
|
||||||
std::string Target(GetGamePath() + "mods/unpacked/beammp");
|
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);
|
fs::remove_all(Target);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user