- Philips: older models which export a Repair/*.BIN file can now be loaded, when there is an invisible .xml file in the same

directory.
  (Philips exports the .xml file with file attributes "hidden" and "system", which makes them invisible to Windows Explorer)
- upgrade to DevExpress 20.1.6
This commit is contained in:
Horst Beham
2020-08-03 00:35:57 +02:00
parent a10fb8b353
commit e472e6976b
21 changed files with 357 additions and 345 deletions

View File

@@ -128,6 +128,17 @@ namespace ChanSort.Loader.PhilipsXml
this.FileName = binFile;
isChannelMapFolderStructure = true;
}
else if (Path.GetExtension(this.FileName).ToLower() == ".bin")
{
// older Philips models export a visible file like Repair\CM_T911_LA_CK.BIN and an invisible (hidden+system) .xml file with the same name
var xmlPath = Path.Combine(dir, Path.GetFileNameWithoutExtension(this.FileName) + ".xml");
if (File.Exists(xmlPath))
{
try { File.SetAttributes(xmlPath, FileAttributes.Archive);}
catch { /**/ }
this.FileName = xmlPath;
}
}
if (isChannelMapFolderStructure)
{