Disable resharper inspections on case-by-case basis

This commit is contained in:
smoogipoo
2017-11-20 18:55:48 +09:00
parent f0966a2e12
commit aac41d2de6
21 changed files with 46 additions and 16 deletions

View File

@ -5,13 +5,16 @@ using System;
using System.IO;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.Win32;
using osu.Desktop.Overlays;
using osu.Framework.Graphics.Containers;
using osu.Framework.Platform;
using osu.Game;
using OpenTK.Input;
#if NET461
using Microsoft.Win32;
#endif
namespace osu.Desktop
{
internal class OsuGameDesktop : OsuGame
@ -45,9 +48,9 @@ namespace osu.Desktop
{
Func<string, bool> checkExists = p => Directory.Exists(Path.Combine(p, "Songs"));
#if NET461
string stableInstallPath;
#if NET461
try
{
using (RegistryKey key = Registry.ClassesRoot.OpenSubKey("osu"))
@ -61,7 +64,11 @@ namespace osu.Desktop
}
#endif
#if NET461
stableInstallPath = Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.LocalApplicationData), @"osu!");
#else
var stableInstallPath = Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.LocalApplicationData), @"osu!");
#endif
if (checkExists(stableInstallPath))
return stableInstallPath;