mirror of
https://github.com/ICDSystems/ICD.Common.Utils.git
synced 2026-04-12 12:07:05 +00:00
feat: Breaking out Program/Common config directories from the full paths
This commit is contained in:
parent
0931d6f1ec
commit
475f381991
1 changed files with 16 additions and 5 deletions
|
|
@ -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.
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue