mirror of
https://github.com/ICDSystems/ICD.Common.Utils.git
synced 2026-02-16 13:15:07 +00:00
feat: Breaking out Program/Common config directories from the full paths
This commit is contained in:
@@ -61,11 +61,19 @@ namespace ICD.Common.Utils
|
|||||||
{
|
{
|
||||||
get
|
get
|
||||||
{
|
{
|
||||||
if (IcdEnvironment.RuntimeEnvironment == IcdEnvironment.eRuntimeEnvironment.SimplSharpProMono)
|
return Join(RootConfigPath, ProgramConfigDirectory);
|
||||||
return Join(RootConfigPath, "ProgramConfig");
|
}
|
||||||
|
}
|
||||||
|
|
||||||
string directoryName = string.Format("Program{0:D2}Config", ProgramUtils.ProgramNumber);
|
[PublicAPI]
|
||||||
return Join(RootConfigPath, directoryName);
|
public static string ProgramConfigDirectory
|
||||||
|
{
|
||||||
|
get
|
||||||
|
{
|
||||||
|
if (IcdEnvironment.RuntimeEnvironment == IcdEnvironment.eRuntimeEnvironment.SimplSharpProMono)
|
||||||
|
return "ProgramConfig";
|
||||||
|
|
||||||
|
return string.Format("Program{0:D2}Config", ProgramUtils.ProgramNumber);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -73,7 +81,10 @@ namespace ICD.Common.Utils
|
|||||||
/// Returns the absolute path to the common configuration directory.
|
/// Returns the absolute path to the common configuration directory.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
[PublicAPI]
|
[PublicAPI]
|
||||||
public static string CommonConfigPath { get { return Join(RootConfigPath, "CommonConfig"); } }
|
public static string CommonConfigPath { get { return Join(RootConfigPath, CommonConfigDirectory); } }
|
||||||
|
|
||||||
|
[PublicAPI]
|
||||||
|
public static string CommonConfigDirectory { get { return "CommonConfig"; }}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Returns the absolute path to the common config library directory.
|
/// Returns the absolute path to the common config library directory.
|
||||||
|
|||||||
Reference in New Issue
Block a user