Skip to content

Commit

Permalink
Update DefaultVersionLocator.cs
Browse files Browse the repository at this point in the history
  • Loading branch information
laolarou726 committed May 10, 2024
1 parent 8745ded commit 9b73fc2
Showing 1 changed file with 7 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -599,18 +599,15 @@ void ProcessProfile(VersionInfo result, string id)

return;
}
}

var gameProfile = new GameProfileModel
{
GameDir = gamePath,
LastVersionId = id,
Name = id,
Created = DateTime.Now
};
var gameProfile = new GameProfileModel
{
GameDir = gamePath,
LastVersionId = id,
Name = id,
Created = DateTime.Now
};

lock (_lock)
{
LauncherProfileParser.LauncherProfile.Profiles!.Add(gameId, gameProfile);
LauncherProfileParser.SaveProfile();
}
Expand Down

0 comments on commit 9b73fc2

Please sign in to comment.