mirror of
https://github.com/BeamMP/BeamMP-Launcher.git
synced 2025-07-04 00:47:23 +00:00
Check if unpacked BeamMP has a .git folder before deleting it
This commit is contained in:
parent
edbd99f389
commit
baba0ad026
@ -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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user