mirror of
https://github.com/wabbajack-tools/wabbajack.git
synced 2024-08-30 18:42:17 +00:00
Created GetBySteamID function for the GameRegistry
This commit is contained in:
parent
57c421967d
commit
f4b3ba9a72
@ -96,6 +96,12 @@ namespace Wabbajack.Common
|
||||
return Games.Values.FirstOrDefault(g => g.NexusName == gameName.ToLower());
|
||||
}
|
||||
|
||||
public static GameMetaData GetBySteamID(int id)
|
||||
{
|
||||
return Games.Values
|
||||
.FirstOrDefault(g => g.SteamIDs != null && g.SteamIDs.Count > 0 && g.SteamIDs.Any(i => i == id));
|
||||
}
|
||||
|
||||
public static IReadOnlyDictionary<Game, GameMetaData> Games = new Dictionary<Game, GameMetaData>
|
||||
{
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user