mirror of
https://github.com/PredatH0r/ChanSort.git
synced 2026-05-07 12:27:49 +02:00
- 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:
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user