mirror of
https://github.com/ICDSystems/ICD.Common.Utils.git
synced 2026-02-15 20:54:58 +00:00
fix: Use IcdEnvironment instead of CrestronEnvironment
This commit is contained in:
@@ -3,9 +3,6 @@ using System.Linq;
|
|||||||
using ICD.Common.Properties;
|
using ICD.Common.Properties;
|
||||||
using ICD.Common.Utils.Extensions;
|
using ICD.Common.Utils.Extensions;
|
||||||
using ICD.Common.Utils.IO;
|
using ICD.Common.Utils.IO;
|
||||||
#if SIMPLSHARP
|
|
||||||
using Crestron.SimplSharp;
|
|
||||||
#endif
|
|
||||||
|
|
||||||
namespace ICD.Common.Utils
|
namespace ICD.Common.Utils
|
||||||
{
|
{
|
||||||
@@ -65,12 +62,9 @@ namespace ICD.Common.Utils
|
|||||||
{
|
{
|
||||||
get
|
get
|
||||||
{
|
{
|
||||||
#if SIMPLSHARP
|
if (IcdEnvironment.RuntimeEnvironment == IcdEnvironment.eRuntimeEnvironment.SimplSharpProMono)
|
||||||
if (CrestronEnvironment.DevicePlatform == eDevicePlatform.Server)
|
|
||||||
{
|
|
||||||
return Join(RootConfigPath, "ProgramConfig");
|
return Join(RootConfigPath, "ProgramConfig");
|
||||||
}
|
|
||||||
#endif
|
|
||||||
string directoryName = string.Format("Program{0:D2}Config", ProgramUtils.ProgramNumber);
|
string directoryName = string.Format("Program{0:D2}Config", ProgramUtils.ProgramNumber);
|
||||||
return Join(RootConfigPath, directoryName);
|
return Join(RootConfigPath, directoryName);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user