mirror of
https://github.com/knah/VRCMelonAssistant.git
synced 2024-05-21 21:03:44 +12:00
Avoid crashing when install detection fails.
This commit is contained in:
parent
7e2f75984c
commit
a600678ec6
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue