diff options
| author | Luke Pulverenti <luke.pulverenti@gmail.com> | 2016-12-21 23:47:59 -0500 |
|---|---|---|
| committer | Luke Pulverenti <luke.pulverenti@gmail.com> | 2016-12-21 23:47:59 -0500 |
| commit | a447fd291aef2088d890571e80e4d498fc4498d2 (patch) | |
| tree | 4cbadf80d106821acd08e153ab5c7ba3d7d78547 /Emby.Common.Implementations/EnvironmentInfo/EnvironmentInfo.cs | |
| parent | 961ec0b815e0857abaaa0f474ae13dfa3b6b25ba (diff) | |
update osx detection
Diffstat (limited to 'Emby.Common.Implementations/EnvironmentInfo/EnvironmentInfo.cs')
| -rw-r--r-- | Emby.Common.Implementations/EnvironmentInfo/EnvironmentInfo.cs | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/Emby.Common.Implementations/EnvironmentInfo/EnvironmentInfo.cs b/Emby.Common.Implementations/EnvironmentInfo/EnvironmentInfo.cs index 6cc4626ea..dcc974413 100644 --- a/Emby.Common.Implementations/EnvironmentInfo/EnvironmentInfo.cs +++ b/Emby.Common.Implementations/EnvironmentInfo/EnvironmentInfo.cs @@ -10,11 +10,17 @@ namespace Emby.Common.Implementations.EnvironmentInfo public class EnvironmentInfo : IEnvironmentInfo { public MediaBrowser.Model.System.Architecture? CustomArchitecture { get; set; } + public MediaBrowser.Model.System.OperatingSystem? CustomOperatingSystem { get; set; } public MediaBrowser.Model.System.OperatingSystem OperatingSystem { get { + if (CustomOperatingSystem.HasValue) + { + return CustomOperatingSystem.Value; + } + #if NET46 switch (Environment.OSVersion.Platform) { |
