Disable CA1416

This commit is contained in:
Roman Kapustin 2020-11-20 11:53:17 +03:00
parent f562a7ea0d
commit 044622036c
1 changed files with 2 additions and 0 deletions

View File

@ -58,8 +58,10 @@ private string getStableInstallPath()
try
{
#pragma warning disable CA1416 // Validate platform compatibility
using (RegistryKey key = Registry.ClassesRoot.OpenSubKey("osu"))
stableInstallPath = key?.OpenSubKey(@"shell\open\command")?.GetValue(string.Empty).ToString()?.Split('"')[1].Replace("osu!.exe", "");
#pragma warning restore CA1416 // Validate platform compatibility
if (checkExists(stableInstallPath))
return stableInstallPath;