diff options
| author | JP Dillingham <jp@dillingham.me> | 2026-06-04 07:48:47 -0500 |
|---|---|---|
| committer | JP Dillingham <jp@dillingham.me> | 2026-06-04 07:48:47 -0500 |
| commit | 7e0bc2227cc8593b65e3acd587cbc783e561ca6a (patch) | |
| tree | d3646d726ac543320a7513387c0342c57809bcda /src/slskd/Common/Compute.cs | |
| parent | 78561f600754241efdf06c0fcee5ffdbdccda1b6 (diff) | |
| parent | 9a08d5029880c2be008685990f0c83f221ec0e75 (diff) | |
| download | slskd-7e0bc2227cc8593b65e3acd587cbc783e561ca6a.tar.gz | |
Merge branch 'destination' of github.com:slskd/slskd into destination
Diffstat (limited to 'src/slskd/Common/Compute.cs')
| -rw-r--r-- | src/slskd/Common/Compute.cs | 18 |
1 files changed, 4 insertions, 14 deletions
diff --git a/src/slskd/Common/Compute.cs b/src/slskd/Common/Compute.cs index dc565806..d235a87c 100644 --- a/src/slskd/Common/Compute.cs +++ b/src/slskd/Common/Compute.cs @@ -66,24 +66,14 @@ namespace slskd return BitConverter.ToString(sha256.ComputeHash(Encoding.UTF8.GetBytes(str))).Replace("-", string.Empty); } - public static OSPlatform OSPlatform() + public static OperatingSystem OperatingSystem() { - if (OperatingSystem.IsWindows()) + if (System.OperatingSystem.IsWindows()) { - return System.Runtime.InteropServices.OSPlatform.Windows; + return slskd.OperatingSystem.Windows; } - if (OperatingSystem.IsMacOS()) - { - return System.Runtime.InteropServices.OSPlatform.OSX; - } - - if (OperatingSystem.IsFreeBSD()) - { - return System.Runtime.InteropServices.OSPlatform.FreeBSD; - } - - return System.Runtime.InteropServices.OSPlatform.Linux; + return slskd.OperatingSystem.Linux; } } }
\ No newline at end of file |
