aboutsummaryrefslogtreecommitdiff
path: root/Ryujinx/Ui/Helper/OpenHelper.cs
diff options
context:
space:
mode:
Diffstat (limited to 'Ryujinx/Ui/Helper/OpenHelper.cs')
-rw-r--r--Ryujinx/Ui/Helper/OpenHelper.cs8
1 files changed, 4 insertions, 4 deletions
diff --git a/Ryujinx/Ui/Helper/OpenHelper.cs b/Ryujinx/Ui/Helper/OpenHelper.cs
index 6ccf4de3..2b25d8f3 100644
--- a/Ryujinx/Ui/Helper/OpenHelper.cs
+++ b/Ryujinx/Ui/Helper/OpenHelper.cs
@@ -1,6 +1,6 @@
using Ryujinx.Common.Logging;
+using System;
using System.Diagnostics;
-using System.Runtime.InteropServices;
namespace Ryujinx.Ui.Helper
{
@@ -18,15 +18,15 @@ namespace Ryujinx.Ui.Helper
public static void OpenUrl(string url)
{
- if (RuntimeInformation.IsOSPlatform(OSPlatform.Windows))
+ if (OperatingSystem.IsWindows())
{
Process.Start(new ProcessStartInfo("cmd", $"/c start {url.Replace("&", "^&")}"));
}
- else if (RuntimeInformation.IsOSPlatform(OSPlatform.Linux))
+ else if (OperatingSystem.IsLinux())
{
Process.Start("xdg-open", url);
}
- else if (RuntimeInformation.IsOSPlatform(OSPlatform.OSX))
+ else if (OperatingSystem.IsMacOS())
{
Process.Start("open", url);
}