mirror of
https://github.com/BeamMP/BeamMP-Launcher.git
synced 2025-08-16 00:06:41 +00:00
Update Check for Game Files on Native Linux (#92)
Beforehand, the launcher would check only if the game directory existed. This would lead to an error if the game was moved through Steam since Steam leaves the BeamNG.Drive directory behind. Now it checks for to see if integrity.json is inside. I also removed some commented out code I seem to have left behind when I was porting it. I agree to this code (and the whole port to native Linux since the #63 was locked and I couldn't agree there) being licensed under AGPL 3.
This commit is contained in:
commit
3e7d16a8e8
@ -185,7 +185,7 @@ void LegitimacyCheck() {
|
||||
auto root = tyti::vdf::read(libraryFolders);
|
||||
|
||||
for (auto folderInfo : root.childs) {
|
||||
if (std::filesystem::exists(folderInfo.second->attribs["path"] + "/steamapps/common/BeamNG.drive/")) {
|
||||
if (std::filesystem::exists(folderInfo.second->attribs["path"] + "/steamapps/common/BeamNG.drive/integrity.json")){
|
||||
GameDir = folderInfo.second->attribs["path"] + "/steamapps/common/BeamNG.drive/";
|
||||
break;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user