mirror of
https://github.com/PepperDash/PepperDashCore.git
synced 2026-02-15 12:44:48 +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)
|
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",
|
||||||
|
|||||||
Reference in New Issue
Block a user