Avoid crashing when install detection fails.

This commit is contained in:
Assistant 2019-05-21 16:51:09 -04:00
parent 7e2f75984c
commit a600678ec6

View file

@ -97,13 +97,21 @@ namespace ModAssistant
return InstallDir;
}
InstallDir = GetSteamDir();
try
{
InstallDir = GetSteamDir();
}
catch { }
if (!String.IsNullOrEmpty(InstallDir))
{
return InstallDir;
}
InstallDir = GetOculusDir();
try
{
InstallDir = GetOculusDir();
}
catch { }
if (!String.IsNullOrEmpty(InstallDir))
{
return InstallDir;