Update src/Security/BeamNG.cpp

Co-authored-by: Tixx <83774803+WiserTixx@users.noreply.github.com>
This commit is contained in:
Winos 2024-12-06 15:02:07 -03:00 committed by GitHub
parent 80a3feb349
commit a06470cb70
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -205,13 +205,6 @@ void LegitimacyCheck() {
break;
}
}
if (GameDir.empty()) {
// Check if user is using Snap, which can't be located from libraryFolders...
const std::string snapPath =
homeDir + "/snap/steam/common/.local/share/Steam/steamapps/common/BeamNG.drive/";
if (std::filesystem::exists(snapPath)) GameDir = snapPath;
}
#endif
}
std::string CheckVer(const std::string& dir) {