mirror of
https://github.com/PepperDash/PepperDashCore.git
synced 2026-01-11 19:44:44 +00:00
fix: simplify debug settings path handling for appliance platform
This commit is contained in:
BIN
src/.DS_Store
vendored
Normal file
BIN
src/.DS_Store
vendored
Normal file
Binary file not shown.
BIN
src/Pepperdash Core/.DS_Store
vendored
Normal file
BIN
src/Pepperdash Core/.DS_Store
vendored
Normal file
Binary file not shown.
@@ -823,11 +823,8 @@ namespace PepperDash.Core
|
||||
{
|
||||
if (CrestronEnvironment.DevicePlatform == eDevicePlatform.Appliance)
|
||||
{
|
||||
// Use fully qualified name for System.IO.Path
|
||||
string baseDir = Directory.GetApplicationRootDirectory();
|
||||
string userDir = System.IO.Path.Combine(baseDir, "user");
|
||||
string debugSettingsDir = System.IO.Path.Combine(userDir, "debugSettings");
|
||||
return System.IO.Path.Combine(debugSettingsDir, $"program{InitialParametersClass.ApplicationNumber}");
|
||||
// Make sure the path starts with a slash to make it absolute
|
||||
return String.Format("/user/debugSettings/program{0}", InitialParametersClass.ApplicationNumber);
|
||||
}
|
||||
|
||||
return string.Format("{0}{1}user{1}debugSettings{1}{2}.json",
|
||||
|
||||
Reference in New Issue
Block a user