1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-08 06:52:59 +08:00

Disable CA1416

This commit is contained in:
Roman Kapustin 2020-11-20 11:53:17 +03:00
parent f562a7ea0d
commit 044622036c

View File

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