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. --- ARMeilleure/Translation/PTC/Ptc.cs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'ARMeilleure/Translation/PTC') diff --git a/ARMeilleure/Translation/PTC/Ptc.cs b/ARMeilleure/Translation/PTC/Ptc.cs index 8e5349e5..04cab561 100644 --- a/ARMeilleure/Translation/PTC/Ptc.cs +++ b/ARMeilleure/Translation/PTC/Ptc.cs @@ -960,10 +960,10 @@ namespace ARMeilleure.Translation.PTC { uint osPlatform = 0u; - osPlatform |= (RuntimeInformation.IsOSPlatform(OSPlatform.FreeBSD) ? 1u : 0u) << 0; - osPlatform |= (RuntimeInformation.IsOSPlatform(OSPlatform.Linux) ? 1u : 0u) << 1; - osPlatform |= (RuntimeInformation.IsOSPlatform(OSPlatform.OSX) ? 1u : 0u) << 2; - osPlatform |= (RuntimeInformation.IsOSPlatform(OSPlatform.Windows) ? 1u : 0u) << 3; + osPlatform |= (OperatingSystem.IsFreeBSD() ? 1u : 0u) << 0; + osPlatform |= (OperatingSystem.IsLinux() ? 1u : 0u) << 1; + osPlatform |= (OperatingSystem.IsMacOS() ? 1u : 0u) << 2; + osPlatform |= (OperatingSystem.IsWindows() ? 1u : 0u) << 3; return osPlatform; } -- cgit v1.2.3