mirror of
https://github.com/BeamMP/BeamMP-Launcher.git
synced 2025-07-01 23:46:59 +00:00
Update src/Security/BeamNG.cpp
Co-authored-by: Tixx <83774803+WiserTixx@users.noreply.github.com>
This commit is contained in:
parent
a06470cb70
commit
ebf1579ce4
@ -183,9 +183,11 @@ void LegitimacyCheck() {
|
|||||||
std::string homeDir = pw->pw_dir;
|
std::string homeDir = pw->pw_dir;
|
||||||
// Right now only steam is supported
|
// Right now only steam is supported
|
||||||
std::vector<std::string> steamappsCommonPaths = {
|
std::vector<std::string> steamappsCommonPaths = {
|
||||||
homeDir + "/.steam/root/steamapps/", // default
|
"/.steam/root/steamapps/", // default
|
||||||
homeDir + "/.var/app/com.valvesoftware.Steam/.steam/root/steamapps/", // flatpak
|
"/.var/app/com.valvesoftware.Steam/.steam/root/steamapps/", // flatpak
|
||||||
|
"/snap/steam/common/.local/share/Steam/steamapps/" //snap
|
||||||
};
|
};
|
||||||
|
|
||||||
std::string libraryFoldersPath;
|
std::string libraryFoldersPath;
|
||||||
bool libraryFoldersFound = false;
|
bool libraryFoldersFound = false;
|
||||||
for (const std::string& path : steamappsCommonPaths) {
|
for (const std::string& path : steamappsCommonPaths) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user