fix: simplify debug settings path handling for appliance platform

This commit is contained in:
jtalborough
2025-02-25 19:03:14 -05:00
parent f248ef8579
commit ef9fb4cb9f
4 changed files with 2 additions and 5 deletions

BIN
.DS_Store vendored Normal file

Binary file not shown.

BIN
src/.DS_Store vendored Normal file

Binary file not shown.

BIN
src/Pepperdash Core/.DS_Store vendored Normal file

Binary file not shown.

View File

@@ -823,11 +823,8 @@ namespace PepperDash.Core
{ {
if (CrestronEnvironment.DevicePlatform == eDevicePlatform.Appliance) if (CrestronEnvironment.DevicePlatform == eDevicePlatform.Appliance)
{ {
// Use fully qualified name for System.IO.Path // Make sure the path starts with a slash to make it absolute
string baseDir = Directory.GetApplicationRootDirectory(); return String.Format("/user/debugSettings/program{0}", InitialParametersClass.ApplicationNumber);
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}");
} }
return string.Format("{0}{1}user{1}debugSettings{1}{2}.json", return string.Format("{0}{1}user{1}debugSettings{1}{2}.json",