From f39fce8f54c1e4dfa1ca56e4a2b1668e9ea30956 Mon Sep 17 00:00:00 2001 From: Mary Date: Sun, 5 Dec 2021 00:02:30 +0100 Subject: misc: Migrate usage of RuntimeInformation to OperatingSystem (#2901) Very basic migration across the codebase. --- Ryujinx.Memory/MemoryManagementWindows.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'Ryujinx.Memory/MemoryManagementWindows.cs') diff --git a/Ryujinx.Memory/MemoryManagementWindows.cs b/Ryujinx.Memory/MemoryManagementWindows.cs index b14fb6c1..48616ec3 100644 --- a/Ryujinx.Memory/MemoryManagementWindows.cs +++ b/Ryujinx.Memory/MemoryManagementWindows.cs @@ -2,9 +2,11 @@ using System; using System.Collections.Generic; using System.Runtime.InteropServices; +using System.Runtime.Versioning; namespace Ryujinx.Memory { + [SupportedOSPlatform("windows")] static class MemoryManagementWindows { private static readonly IntPtr InvalidHandleValue = new IntPtr(-1); @@ -59,9 +61,7 @@ namespace Ryujinx.Memory static MemoryManagementWindows() { - Version version = Environment.OSVersion.Version; - - UseWin10Placeholders = (version.Major == 10 && version.Build >= 17134) || version.Major > 10; + UseWin10Placeholders = OperatingSystem.IsWindowsVersionAtLeast(10, 0, 17134); } public static IntPtr Allocate(IntPtr size) -- cgit v1.2.3