diff options
Diffstat (limited to 'Ryujinx/Ui/Helper/OpenHelper.cs')
-rw-r--r-- | Ryujinx/Ui/Helper/OpenHelper.cs | 39 |
1 files changed, 0 insertions, 39 deletions
diff --git a/Ryujinx/Ui/Helper/OpenHelper.cs b/Ryujinx/Ui/Helper/OpenHelper.cs deleted file mode 100644 index 2b25d8f3..00000000 --- a/Ryujinx/Ui/Helper/OpenHelper.cs +++ /dev/null @@ -1,39 +0,0 @@ -using Ryujinx.Common.Logging; -using System; -using System.Diagnostics; - -namespace Ryujinx.Ui.Helper -{ - static class OpenHelper - { - public static void OpenFolder(string path) - { - Process.Start(new ProcessStartInfo - { - FileName = path, - UseShellExecute = true, - Verb = "open" - }); - } - - public static void OpenUrl(string url) - { - if (OperatingSystem.IsWindows()) - { - Process.Start(new ProcessStartInfo("cmd", $"/c start {url.Replace("&", "^&")}")); - } - else if (OperatingSystem.IsLinux()) - { - Process.Start("xdg-open", url); - } - else if (OperatingSystem.IsMacOS()) - { - Process.Start("open", url); - } - else - { - Logger.Notice.Print(LogClass.Application, $"Cannot open url \"{url}\" on this platform!"); - } - } - } -}
\ No newline at end of file |