mirror of
https://github.com/ppy/osu.git
synced 2024-12-14 20:03:22 +08:00
Disable CA1416
This commit is contained in:
parent
f562a7ea0d
commit
044622036c
@ -58,8 +58,10 @@ namespace osu.Desktop
|
||||
|
||||
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;
|
||||
|
Loading…
Reference in New Issue
Block a user