mirror of
https://github.com/BeamMP/BeamMP-Launcher.git
synced 2025-07-01 15:36:10 +00:00
Fix .git folder check and GetGamePath()
This commit is contained in:
parent
6c740e2562
commit
8b96ffb098
@ -95,7 +95,7 @@ std::wstring GetGamePath() {
|
||||
|
||||
std::string Ver = CheckVer(GetGameDir());
|
||||
Ver = Ver.substr(0, Ver.find('.', Ver.find('.') + 1));
|
||||
Path += Utils::ToWString(Ver) + L"\\";
|
||||
(Path /= Utils::ToWString(Ver)) /= L"\\";
|
||||
return Path;
|
||||
}
|
||||
#elif defined(__linux__)
|
||||
|
@ -337,7 +337,7 @@ void PreGame(const beammp_fs_string& GamePath) {
|
||||
|
||||
beammp_fs_string Target(GetGamePath() + beammp_wide("mods/unpacked/beammp"));
|
||||
|
||||
if (fs::is_directory(Target) && !fs::is_directory(Target + "/.git")) {
|
||||
if (fs::is_directory(Target) && !fs::is_directory(Target + beammp_wide("/.git"))) {
|
||||
fs::remove_all(Target);
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user