From 89327b8e203e7671494f41358b4a1f82aba30c47 Mon Sep 17 00:00:00 2001 From: Winos <42523848+Johnny-Connor@users.noreply.github.com> Date: Fri, 6 Dec 2024 15:03:25 -0300 Subject: [PATCH] Update src/Security/BeamNG.cpp Co-authored-by: Tixx <83774803+WiserTixx@users.noreply.github.com> --- src/Security/BeamNG.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Security/BeamNG.cpp b/src/Security/BeamNG.cpp index ff415cb..d8bf370 100644 --- a/src/Security/BeamNG.cpp +++ b/src/Security/BeamNG.cpp @@ -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;