diff options
| author | Ac_K <Acoustik666@gmail.com> | 2020-11-27 18:57:20 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-11-27 18:57:20 +0100 |
| commit | b1877632cfabad9e5856c6f82430ecc851645be9 (patch) | |
| tree | d6cb0455b9ad277e8fd1cf4f733cd8484f6818e7 /Ryujinx.Common/SystemInfo | |
| parent | 632a84155b537298b65da0653435882a753f0bbe (diff) | |
Remove some warnings and cleaning code (#1736)
Diffstat (limited to 'Ryujinx.Common/SystemInfo')
| -rw-r--r-- | Ryujinx.Common/SystemInfo/LinuxSystemInfo.cs | 2 | ||||
| -rw-r--r-- | Ryujinx.Common/SystemInfo/MacOSSysteminfo.cs | 2 | ||||
| -rw-r--r-- | Ryujinx.Common/SystemInfo/WindowsSystemInfo.cs | 2 |
3 files changed, 6 insertions, 0 deletions
diff --git a/Ryujinx.Common/SystemInfo/LinuxSystemInfo.cs b/Ryujinx.Common/SystemInfo/LinuxSystemInfo.cs index bd3ee57a..c729ab3d 100644 --- a/Ryujinx.Common/SystemInfo/LinuxSystemInfo.cs +++ b/Ryujinx.Common/SystemInfo/LinuxSystemInfo.cs @@ -1,8 +1,10 @@ using System.IO; using System.Linq; +using System.Runtime.Versioning; namespace Ryujinx.Common.SystemInfo { + [SupportedOSPlatform("linux")] internal class LinuxSysteminfo : SystemInfo { public override string CpuName { get; } diff --git a/Ryujinx.Common/SystemInfo/MacOSSysteminfo.cs b/Ryujinx.Common/SystemInfo/MacOSSysteminfo.cs index 5ba45a68..1cf18ca0 100644 --- a/Ryujinx.Common/SystemInfo/MacOSSysteminfo.cs +++ b/Ryujinx.Common/SystemInfo/MacOSSysteminfo.cs @@ -1,11 +1,13 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using System.Runtime.Versioning; using System.Text; using Ryujinx.Common.Logging; namespace Ryujinx.Common.SystemInfo { + [SupportedOSPlatform("macos")] internal class MacOSSysteminfo : SystemInfo { public override string CpuName { get; } diff --git a/Ryujinx.Common/SystemInfo/WindowsSystemInfo.cs b/Ryujinx.Common/SystemInfo/WindowsSystemInfo.cs index 2bdd6250..1b048c8e 100644 --- a/Ryujinx.Common/SystemInfo/WindowsSystemInfo.cs +++ b/Ryujinx.Common/SystemInfo/WindowsSystemInfo.cs @@ -2,9 +2,11 @@ using Ryujinx.Common.Logging; using System; using System.Management; using System.Runtime.InteropServices; +using System.Runtime.Versioning; namespace Ryujinx.Common.SystemInfo { + [SupportedOSPlatform("windows")] internal class WindowsSysteminfo : SystemInfo { public override string CpuName { get; } |
