mirror of
https://github.com/wabbajack-tools/wabbajack.git
synced 2024-08-30 18:42:17 +00:00
Null fix for checking required files when loading steam games
This commit is contained in:
parent
907b020db5
commit
f9f9646cc8
@ -159,11 +159,11 @@ namespace Wabbajack.Common.StoreHandlers
|
||||
|
||||
if (!valid) return;
|
||||
|
||||
var gameMeta = GameRegistry.Games.Values.FirstOrDefault(g =>
|
||||
g.SteamIDs.Contains(game.ID)
|
||||
&&
|
||||
g.RequiredFiles.TrueForAll(file =>
|
||||
File.Exists(Path.Combine(game.Path, file))));
|
||||
var gameMeta = GameRegistry.Games.Values.FirstOrDefault(g =>
|
||||
{
|
||||
return g.SteamIDs.Contains(game.ID)
|
||||
&& (g.RequiredFiles?.TrueForAll(file => File.Exists(Path.Combine(game.Path, file))) ?? true);
|
||||
});
|
||||
|
||||
if (gameMeta == null)
|
||||
return;
|
||||
|
Loading…
Reference in New Issue
Block a user