aboutsummaryrefslogtreecommitdiffstats
path: root/src/slskd/Common/Compute.cs
diff options
context:
space:
mode:
authorJP Dillingham <jp@dillingham.me>2026-06-07 14:45:04 -0500
committerGitHub <noreply@github.com>2026-06-07 14:45:04 -0500
commitb747b68ba0ba777be578e73bd1328fbde940e436 (patch)
tree160d23aeb8707dc04f81bb52e81913c1b77bb2a4 /src/slskd/Common/Compute.cs
parente06999e5eec1616d93b34ffbab0eade617d1aaf6 (diff)
parent2d069bbf1f71f38e1286e27d45c24b478feb11ac (diff)
downloadslskd-b747b68ba0ba777be578e73bd1328fbde940e436.tar.gz
Merge branch 'master' into dependabot/npm_and_yarn/src/web/launch-editor-2.14.1
Diffstat (limited to 'src/slskd/Common/Compute.cs')
-rw-r--r--src/slskd/Common/Compute.cs18
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