mirror of
https://github.com/BeamMP/BeamMP-Launcher.git
synced 2026-05-19 16:10:14 +00:00
Fix userfolder on linux (hopefully)
This commit is contained in:
+2
-2
@@ -122,10 +122,10 @@ std::filesystem::path GetGamePath() {
|
|||||||
struct passwd* pw = getpwuid(getuid());
|
struct passwd* pw = getpwuid(getuid());
|
||||||
std::string homeDir = pw->pw_dir;
|
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());
|
std::string Ver = CheckVer(GetGameDir());
|
||||||
Ver = Ver.substr(0, Ver.find('.', Ver.find('.') + 1));
|
Ver = Ver.substr(0, Ver.find('.', Ver.find('.') + 1));
|
||||||
Path += Ver + "/";
|
Path += "current/";
|
||||||
return Path;
|
return Path;
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
Reference in New Issue
Block a user