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:03:19 -03:00 committed by GitHub
parent a06470cb70
commit ebf1579ce4
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -183,9 +183,11 @@ void LegitimacyCheck() {
std::string homeDir = pw->pw_dir;
// Right now only steam is supported
std::vector<std::string> steamappsCommonPaths = {
homeDir + "/.steam/root/steamapps/", // default
homeDir + "/.var/app/com.valvesoftware.Steam/.steam/root/steamapps/", // flatpak
"/.steam/root/steamapps/", // default
"/.var/app/com.valvesoftware.Steam/.steam/root/steamapps/", // flatpak
"/snap/steam/common/.local/share/Steam/steamapps/" //snap
};
std::string libraryFoldersPath;
bool libraryFoldersFound = false;
for (const std::string& path : steamappsCommonPaths) {