From 4890b167ab8c551d1014f1c653fe3e20f7f0773a Mon Sep 17 00:00:00 2001 From: Andrew Welker Date: Fri, 4 Nov 2022 09:13:19 -0600 Subject: [PATCH] fix: update path to debug settings file The path wasn't taking into account running on VC-4, which was causing exceptions when Essentials was running on VC-4 --- Pepperdash Core/Pepperdash Core/Logging/Debug.cs | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/Pepperdash Core/Pepperdash Core/Logging/Debug.cs b/Pepperdash Core/Pepperdash Core/Logging/Debug.cs index fdb3cb4..334b4db 100644 --- a/Pepperdash Core/Pepperdash Core/Logging/Debug.cs +++ b/Pepperdash Core/Pepperdash Core/Logging/Debug.cs @@ -519,8 +519,13 @@ namespace PepperDash.Core /// static string GetMemoryFileName() { - CheckForMigration(); - return string.Format(@"\user\debugSettings\program{0}", InitialParametersClass.ApplicationNumber); + if (CrestronEnvironment.DevicePlatform == eDevicePlatform.Appliance) + { + CheckForMigration(); + return string.Format(@"\user\debugSettings\program{0}", InitialParametersClass.ApplicationNumber); + } + + return string.Format("", InitialParametersClass.RoomId); } private static void CheckForMigration()