From 1860c0aef1dc1b2b9e2b42f22977555d71c45c0b Mon Sep 17 00:00:00 2001 From: Tixx <83774803+WiserTixx@users.noreply.github.com> Date: Tue, 16 Sep 2025 20:07:26 +0200 Subject: [PATCH] Fix userfolder on linux (hopefully) --- src/GameStart.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/GameStart.cpp b/src/GameStart.cpp index 834628d..0632606 100644 --- a/src/GameStart.cpp +++ b/src/GameStart.cpp @@ -122,10 +122,10 @@ std::filesystem::path GetGamePath() { struct passwd* pw = getpwuid(getuid()); std::string homeDir = pw->pw_dir; - std::string Path = homeDir + "/.local/share/BeamNG.drive/"; + std::string Path = homeDir + "/.local/share/BeamNG/BeamNG.drive/"; std::string Ver = CheckVer(GetGameDir()); Ver = Ver.substr(0, Ver.find('.', Ver.find('.') + 1)); - Path += Ver + "/"; + Path += "current/"; return Path; } #endif