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

View File

@ -191,7 +191,8 @@ void LegitimacyCheck() {
std::string libraryFoldersPath;
bool libraryFoldersFound = false;
for (const std::string& path : steamappsCommonPaths) {
std::string fullPath = path + "/libraryfolders.vdf";
std::string fullPath = homeDir + path + "/libraryfolders.vdf";
if (std::filesystem::exists(fullPath)) {
libraryFoldersPath = fullPath;
libraryFoldersFound = true;