From 5cb4d79cdd1896bd687734d96f925a088330b8a4 Mon Sep 17 00:00:00 2001 From: Tixx <83774803+WiserTixx@users.noreply.github.com> Date: Sat, 17 Jan 2026 19:46:17 +0100 Subject: [PATCH] Check for BeamNG to find the correct path --- src/Security/BeamNG.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Security/BeamNG.cpp b/src/Security/BeamNG.cpp index 19f5524..4bb6d12 100644 --- a/src/Security/BeamNG.cpp +++ b/src/Security/BeamNG.cpp @@ -269,7 +269,7 @@ void LegitimacyCheck() { std::ifstream libraryFolders(libraryFoldersPath); auto root = tyti::vdf::read(libraryFolders); for (auto folderInfo : root.childs) { - if (std::filesystem::exists(folderInfo.second->attribs["path"] + "/steamapps/common/BeamNG.drive/integrity.json")){ + if ((folderInfo.second->childs["apps"]->attribs).contains("284160") && std::filesystem::exists(folderInfo.second->attribs["path"] + "/steamapps/common/BeamNG.drive/integrity.json")){ GameDir = folderInfo.second->attribs["path"] + "/steamapps/common/BeamNG.drive/"; break; }