Skip to content

Commit

Permalink
Do not fail with NRE when running from root folder
Browse files Browse the repository at this point in the history
  • Loading branch information
sailro committed Apr 22, 2024
1 parent e2f36cf commit 1966c4e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Installer/Installation.cs
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,9 @@ private static bool TryDiscoverInstallation(string path, [NotNullWhen(true)] out

try
{
if (string.IsNullOrEmpty(path))
return false;

path = Path.GetFullPath(path.Trim('\"'));
var exe = Path.Combine(path, "EscapeFromTarkov.exe");
if (!File.Exists(exe))
Expand Down

0 comments on commit 1966c4e

Please sign in to comment.