mirror of
https://github.com/ppy/osu.git
synced 2025-01-08 06:52:59 +08:00
Disable CA1416
This commit is contained in:
parent
f562a7ea0d
commit
044622036c
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user