Skip to content

Commit

Permalink
Yet more precautions for invalid data in Steam
Browse files Browse the repository at this point in the history
  • Loading branch information
HebaruSan committed Oct 16, 2024
1 parent c1ac4f6 commit 4b90893
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Core/SteamLibrary.cs
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,8 @@ public class NonSteamGame : GameBase
public override GameBase NormalizeDir(string appPath)
{
GameDir = StartDir == null ? null
: new DirectoryInfo(CKANPathUtils.NormalizePath(StartDir.Trim('"')));
: Utilities.DefaultIfThrows(() =>
new DirectoryInfo(CKANPathUtils.NormalizePath(StartDir.Trim('"'))));
return this;
}
}
Expand Down

0 comments on commit 4b90893

Please sign in to comment.